--- Zwane Mwaikambo <zwane@linuxpower.ca> wrote: > On Tue, 9 Dec 2003 Shifani.bose@lntinfotech.com wrote: > > > and your initialization function should be preceded by > > __init ur_init_func( ); > > > > > > kernel 2.4 takes care of calling ur initialization function when > it is > > preceded by __init > > Perhaps you meant that __init functions are placed in the __init > .text > section and therefore can be discarded, to specify a module entry > point use > module_init and module_exit for cleanup code on exit. > > module_init(my_init_function); > module_exit(my_exit_function); > > Cheers, > Zwane > Rubini and Corbet have a nice discussion (2.4 kernels) at: http://www.xml.com/ldd/chapter/book/ch02.html#t4 Scroll down to "Explicit Initialization and Cleanup Functions". Harmony, --Christine __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/