About loadable kernel modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

>  I also have a user process thas loads and unloads this loadable kernel 
> module using the commands:
> system("insmod kernel_module.o")
> system("rmmod kernel_module") respectively.

Ok.

>  I'd like to pass parameters to the loadable module, hence having a more 
> flexible user process.
>   So, instead of using the command /system("insmod kernel_module.o"),/
> i'd like to use: /system("insmod kernel_module.o <param1> 
> <param2>...<param n>")/
> , hence passing command line parameters to my loadable module.
>  
> Do you know if it is possible?

You definitely want the know about the MODULE_PARM() macro. Get more information 
by reading an existing module like for example:

grep ^MODULE_ /usr/src/linux/drivers/net/3c59x.c

Best regards,
Roberto Nibali, ratz
-- 
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux