Skip to contentSkip to conversation

module parameters and 2.6 macros

DISCUSSION Jon Smirl 2 participants 2 messages Aug 15, 2004

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

Is there some way to avoid two sets of parsing code with the 2.6 module parameter macros?

With the new module parameter macros I can do this:
modprobe radeon debug=1 cards_limit=10

compiled in I need:
kernel /vmlinuz-2.6.8.1 radeon=debug:1,cards_limit:10

For the compiled in case the driver has a parser which decodes the string. I'd like to remove this parser.

Is this what MODULE_SUPPORTED_DEVICE() is for but the code isn't written yet?

=====
Jon Smirl
[email protected]

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

#1 lore raw
Quoted 2 lines · Jon Smirl

Is there some way to avoid two sets of parsing code with the 2.6 module parameter macros?

Yes, if you use module_param{,_named} and a paramter 'foo' you can use foo=1 at modprobe time and modulename.foo=1 at the kernel command line