Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-25-2014 #1
- Join Date
- Jun 2014
How is sys_init_module called when using kmod's insmod ?
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!
- 3 Days Ago #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
As I understand it, a kernel module's init function is called by the kernel when the module has been loaded. kmod and such (insmod, etc) are user-space programs and their functions do not control that. IE, insmod/kmod, etc do NOT call the module's init function themselves.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!