Skip to contentSkip to conversation

missing adlib release region

PATCH In review Samium Gromoff 3 participants 3 messages May 17, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missing adlib release region

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

drivers/sound/adlib_card.c Thu May 17 11:39:04 2001 renamed from drivers/sound/adlib_card.c Fri May 11 22:42:55 2001 +1 -0
@@ -50,6 +50,7 @@
 
 static void __exit cleanup_adlib(void)
 {
+       release_region(cfg.io_base,4);
        sound_unload_synthdev(cfg.slots[0]);
 
 }
#1 lore raw

__exit

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

#2 lore raw

Re: __exit

In reply to Samium Gromoff
Quoted 2 lines · Anil Kumar

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

Signature · 5 lines
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: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/