lkml.org 
[lkml]   [1999]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] final support for MODULE_PARAM as kernel commandline
Date
From
> I recommend that modules built into kernel use modname.parmname.  Use
> the same syntax when loaded as a separate module but change insmod so
>
> insmod modname parm1=val1 parm2=val2
>
> is tried "as is" first then retried as
>
> insmod modname modname.parm1=val1 modname.parm2=val2

It should try the other way around. The first has an ambiguous failure
case the second does not.

> if the parameter names do not exist in the module. It would require
> 2.3.18-ac users to upgrade to a new modutils but that is nothing new.
> Parameter files would be unchanged and both code and parm files would
> be backwards compatible.
>
> Shall I upgrade insmod to automatically insert a modname prefix on
> parameters if the raw parameter name does not exist?

If someone wants to fix up the modules.h macros to generate the right
foo.bar (and remember thats not a valid variable name in C) then this
sounds the right approach


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.023 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site