Jump to content

How is sys_init_module called when using kmod's insmod ?


Recommended Posts

Guest diracsbracket
Posted

Hi,

I am using the kmod v9 library (apparently) on my Debian machine with kernel 3.4.

 

I am trying to understand module initialization, and as such went to look at how insmod works. As far as I can tell,

the insmod command is just a symlink to kmod, which parses the command line to determine insmod is being meant, and then proceeds to finally call its do_insmod function. In there however (or in any of the other functions do_insmod calls), nowhere I can find that sys_init_module is being called.

 

So how does kmod's insmod then finally proceeds to call the module's init function ??

 

Many thanks for helping me out here!

 

Paul

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...