From: Roberto Nibali <ratz@tac.ch>
To: Alexandros Fragkiadakis <A.Fragiadakis@lboro.ac.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: About loadable kernel modules
Date: Mon, 07 Oct 2002 18:17:21 +0200 [thread overview]
Message-ID: <3DA1B391.9090103@tac.ch> (raw)
In-Reply-To: 001001c26a3e$1900bab0$c5327d9e@alex
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
next prev parent reply other threads:[~2002-10-07 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-02 18:04 About loadable kernel modules Alexandros Fragkiadakis
2002-10-07 16:17 ` Roberto Nibali [this message]
2002-10-08 1:06 ` Joel Newkirk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DA1B391.9090103@tac.ch \
--to=ratz@tac.ch \
--cc=A.Fragiadakis@lboro.ac.uk \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox