Re: Building a kernel with a driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
function.linuxpower.ca

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux