Re: context of init_module()

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

 




but the init starts only after the kernel has completed its booting
and the built-in drivers should be initialized before init is run. if
u see the kernel entry point init() in init/main.c, the /sbin/init is
loaded only in the end.

I did not mean from /sbin/init.
the modules are called in the init.c in do_initcalls().
http://lxr.linux.no/source/init/main.c#L530

i think it is the process context. for example task_struct is already
created in memory. the exec of /sbin/init is done last.

regards
Manish Regmi

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