previous | start | next

Passing Parameters

Assume the previous module is hello-5.c and the kernel module hello-5.ko is built.

Then inserting this into the kernel and passing parameters to the static variables mystring, myshort and myintArray:

insmod hello-5.ko mystring="bebop" myshort=255 myintArray=15,20

The module can be removed from the kernel by:

rmmod hello-5

What happens when the module is loaded? removed?

Where does the output (if any) go when the module is loaded? removed?

Note: You must be "root" to execute insmod (or rmmod).



previous | start | next