linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] missing adlib release region
@ 2001-05-17  7:54 Samium Gromoff
  2001-06-17 10:32 ` __exit Anil Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Samium Gromoff @ 2001-05-17  7:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

    i know, adlib_card is just a stupid interface, but
 i once was hit by this problem ;).

--- linux-2.4.4.orig/drivers/sound/adlib_card.c Fri May 11 22:42:55 2001
+++ linux-2.4.4/drivers/sound/adlib_card.c      Thu May 17 11:39:04 2001
@@ -50,6 +50,7 @@

 static void __exit cleanup_adlib(void)
 {
+       release_region(cfg.io_base,4);
        sound_unload_synthdev(cfg.slots[0]);

 }


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: __exit
  2001-06-17 10:32 ` __exit Anil Kumar
@ 2001-05-17 18:14   ` Erik Mouw
  0 siblings, 0 replies; 3+ messages in thread
From: Erik Mouw @ 2001-05-17 18:14 UTC (permalink / raw)
  To: Anil Kumar; +Cc: linux-kernel

On Sun, Jun 17, 2001 at 04:02:44PM +0530, Anil Kumar wrote:
> what does __exit, __p and other such directives means in the linux source
> code. what is its significance.

The macros __init and __exit are defined in include/linux/init.h:

#define __init          __attribute__ ((__section__ (".text.init")))
#define __exit          __attribute__ ((unused, __section__(".text.exit")))

And they tell the compiler to put the function in .text.init and
.text.exit sections of the object file.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* __exit
  2001-05-17  7:54 [PATCH] missing adlib release region Samium Gromoff
@ 2001-06-17 10:32 ` Anil Kumar
  2001-05-17 18:14   ` __exit Erik Mouw
  0 siblings, 1 reply; 3+ messages in thread
From: Anil Kumar @ 2001-06-17 10:32 UTC (permalink / raw)
  To: linux-kernel

what does __exit, __p and other such directives means in the linux source
code. what is its significance.
thanks,
anil



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-05-17 18:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-17  7:54 [PATCH] missing adlib release region Samium Gromoff
2001-06-17 10:32 ` __exit Anil Kumar
2001-05-17 18:14   ` __exit Erik Mouw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).