Re: __initxxx

Regis Duchesne (regis@via.ecp.fr)
Sat, 7 Mar 1998 15:37:59 +0100 (CET)


> what __initfunc() and __initdata means, eg.
> static char *cpu_vendor_names[] __initdata = {.....
__initfunc() is a macro used to put its first argument (a function) into a
special ELF section that is dropped from memory once drivers's
initialization is over.

So if you write a initialization function, whose code will never be used
again after drivers are initialized, you can use __initfunc around its
declaration in order to reduce your running kernel size by a few KB (24
in my case) of memory

Regis "HPReg" Duchesne - Engineering Student at ***** ******** *****
www http://www.via.ecp.fr/~regis/
(O o) I use Linux & 3Com (1135 KB/s over 10Mb/s ethernet)
--.oOO--(_)--OOo.-----------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu