login
Header Space

 
 

How to insert a kernel module from a c coded application

April 25, 2008 - 1:30pm
Submitted by Anonymous on April 25, 2008 - 1:30pm.
Linux

Hi

Is it possible to insert a kernel module from C application without calling system (" insmod ...") ?

I found some routine init_module, create_module

but it seems that these routine does not work with kernel 2.6

Any comment is welcome

insmod source code

April 25, 2008 - 3:02pm
Anonymous (not verified)

Why don't you check insmod source code? [1]

The code uses the init_module call. modprobe's man page confirms that.

[1] http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary