LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Parav Pandit <paravpandit@yahoo.com>
To: linuxppc-embedded@ozlabs.org
Subject: __init() and module_init() serialization of modules?
Date: Wed, 6 Sep 2006 01:43:46 -0700 (PDT)	[thread overview]
Message-ID: <20060906084346.20669.qmail@web36603.mail.mud.yahoo.com> (raw)

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

                 reply	other threads:[~2006-09-06  8:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060906084346.20669.qmail@web36603.mail.mud.yahoo.com \
    --to=paravpandit@yahoo.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox