LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* __init() and module_init() serialization of modules?
@ 2006-09-06  8:43 Parav Pandit
  0 siblings, 0 replies; only message in thread
From: Parav Pandit @ 2006-09-06  8:43 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

Hi,
   
  My doubt is more related to Linux kernel rather than PPC, but I feel that many will be interested to know this. Please help me to understand a silly doubt.
   
  When we have drivers as kernel modules, it can be loaded using insmod or modprobe.
  We use the depmod utility to generate the module dependancy and so concerned module gets loaded first.
  This is fine.
   
  Now when in comes to in-build module (part of kernel image), we obviously don't run the modprobe and/or depmod because they are no more modules.
   
  So how does - during compilation time, tool chain can identify which module to load first so that do_initcalls() function can take care if it.
   
  e.g. Module A and Module B.
  Both are inbuild, and A uses the functionality of B. So module_init() of B should get called first.
  How this is achieved for in-build modules?
  __init macro takes care of it for freeing that memory after those calls, but how the sequencing is done?
   
  Regards,
  Parav Pandit
   

 		
---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

[-- Attachment #2: Type: text/html, Size: 1400 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-06  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-06  8:43 __init() and module_init() serialization of modules? Parav Pandit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox