From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roberto Nibali Subject: Re: About loadable kernel modules Date: Mon, 07 Oct 2002 18:17:21 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3DA1B391.9090103@tac.ch> References: <001001c26a3e$1900bab0$c5327d9e@alex> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Alexandros Fragkiadakis Cc: netfilter@lists.netfilter.org 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 > ...")/ > , 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