All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: tingwei liu <tingw.liu@gmail.com>
Cc: "Américo Wang" <xiyou.wangcong@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: How many params can be accept by kernel module at most?
Date: Mon, 1 Nov 2010 17:59:22 +0800	[thread overview]
Message-ID: <20101101095922.GE6023@cr0.nay.redhat.com> (raw)
In-Reply-To: <AANLkTikkh+Pif7DuP3p-fH2=5_otX7N0NSjSB2h13yFC@mail.gmail.com>

On Mon, Nov 01, 2010 at 05:49:53PM +0800, tingwei liu wrote:
>The params are transferred by command line. And the params are all in
>program statically. So the stack size determine the params number. For
>example: stack size is 4K,and params are unsigned int type with 4
>bytes,so the max number of params is 1 thousand。
>

Please don't top-reply.

That is not true, the parameters are passed via 'uargs' of init_module()
dynamically, this is when you invoke modprobe/insmod.

For your own kernel module, you may use module_param() to provide
parameters, the max of this is limited to the size of ELF section size,
since they are stored in "__param" section.

  parent reply	other threads:[~2010-11-01  9:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01  6:17 How many params can be accept by kernel module at most? tingwei liu
2010-11-01  9:29 ` Américo Wang
2010-11-01  9:32   ` tingwei liu
2010-11-01  9:49     ` tingwei liu
2010-11-01  9:54       ` tingwei liu
2010-11-01  9:59       ` Américo Wang [this message]
2010-11-01 13:42         ` tingwei liu
2010-11-02  1:40           ` Thiago Farina

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=20101101095922.GE6023@cr0.nay.redhat.com \
    --to=xiyou.wangcong@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tingw.liu@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.