Re: security_initcall ?

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

 



On Fri, Nov 12, 2004 at 10:44:03PM +0900, aq wrote:
> hello,
> 
> I am reading source codes of some LSM modules (Linux Security Module),
> and found that some use "module_init(xxxx)" to register module, but
> others use "security_initcall(xxxx)" for that purpose.
> 
> So my question is: what are the differences between these 2 ways of
> register module? And what is the better way to do that?

security_initcall() happens at a different point in time from
module_init().  Basically it happens before module_init().  There are a
wide range of different init call levels.  See include/linux/init.h for
the different levels, and which ones happen in which order.

Hope this helps,

greg k-h

--
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