Re: How many params can be accept by kernel module at most?

From: tingwei liu
Date: Mon Nov 01 2010 - 05:55:02 EST


My description is correct or not ?

2010/11/1 tingwei liu <tingw.liu@xxxxxxxxx>:
> 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ã
>
> 2010/11/1 tingwei liu <tingw.liu@xxxxxxxxx>:
>> What's the meaning of dynamically and statically?
>> You response help me much. Thank you
>>
>> 2010/11/1 AmÃrico Wang <xiyou.wangcong@xxxxxxxxx>:
>>> On Mon, Nov 01, 2010 at 02:17:23PM +0800, tingwei liu wrote:
>>>>How many params can be accept by kernel module at most?
>>>
>>> If you mean dynamically, these parameters are passed as a whole to kernel,
>>> from the source code, you can see the max length is ~0UL>>1.
>>>
>>> If you mean statically, IOW, the max paramenters you can provide in your module,
>>> this is limited by ELF section size.
>>>
>>> Hope this helps.
>>>
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/