[lkml]   [2010]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How many params can be accept by kernel module at most?
2010/11/1 Américo Wang <>:
> 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.

I really use module_param() to provide parameters. How much of the ELF
section size? How can I find the document of the ELF.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2010-11-01 14:45    [W:0.047 / U:1.828 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site