On Wednesday 02 October 2002 02:04 pm, Alexandros Fragkiadakis wrote: > Hi all, > > Well, i have written a (netfilter) loadable kernel module for filtering > various packets. I pass these packets from kernel space to user space u= sing > libipq. 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. > > I'd like to pass parameters to the loadable module, hence having a mor= e > flexible user process. So, instead of using the command system("insmod > kernel_module.o"), i'd like to use: system("insmod kernel_module.o <par= am1> > <param2>...<param n>") , hence passing command line parameters to my > loadable module. Probably execl(*command,*arg1,*arg2,*arg3...,null) will do what you want. j