Re: module parameters versus kernel command line

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rusty Russell
Date: Thursday, April 3, 2008 - 4:09 pm

On Friday 04 April 2008 02:14:44 Randy Dunlap wrote:

I agree with Randy; it has some appeal, but it's not a killer feature.

We already do the reverse: sysfs exposed parameters are the same for modules 
and builtins.  If they're modifiable (most aren't), you don't have to care 
whether it's a module or not.

But there are also minor downsides.  The first is that we currently warn about 
unused parameters (at least those containing '.').  We'd have to come up with 
something cleverer if we want to warn only about parameters which cannot be 
used by modules (ie. do it in userspace).

The second is that users might be surprised when they take 
the 'usbcore.blinkenlights' line out of their modprobe config file and it 
still applies.  Most users use everything-is-a-module distributions.

Finally, it would be logical to take all the module parameters and autogen 
them into the kernel commandline, but it will soon hit cmdline limits (hmm, 
actually on my Ubuntu Hardy system here I think I'd be OK).

Cheers,
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
module parameters versus kernel command line, Tom Horsley, (Thu Apr 3, 6:00 am)
Re: module parameters versus kernel command line, Randy Dunlap, (Thu Apr 3, 8:39 am)
Re: module parameters versus kernel command line, Tom Horsley, (Thu Apr 3, 9:04 am)
Re: module parameters versus kernel command line, Randy Dunlap, (Thu Apr 3, 9:14 am)
Re: module parameters versus kernel command line, Chris Friesen, (Thu Apr 3, 9:31 am)
Re: module parameters versus kernel command line, Rusty Russell, (Thu Apr 3, 4:09 pm)
Re: module parameters versus kernel command line, Marc Pignat, (Fri Apr 4, 4:45 am)
Re: module parameters versus kernel command line, Rusty Russell, (Fri Apr 4, 3:29 pm)
Re: module parameters versus kernel command line, Tom Horsley, (Sat Apr 5, 3:54 pm)
Re: module parameters versus kernel command line, Rusty Russell, (Sat Apr 5, 8:08 pm)