Skip to contentSkip to conversation

unique names for module parameters

lm-sensors Thomas Andrews 2 participants 2 messages May 4, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

If a module has a parameter like "base", and you want to build a monolithic kernel, as I understand it, you must put into your lilo/grub kenel command-line. Is that correct?

If that is the case, then surely it is a bit short-sighted to use module parameter names like "base" and "irq", etc because there is a very good chance of modules using the same parameter names, and hence causing a kind of name-space pollution?

Would it not make more sense to prefix all module parameters in a more consistent manner eg:

    scx200_acb_base=0x810,0x820,0x830,0x840
    scx200_acb_sioaddr=0x2e,0x4e,0x15c
    scx200_acb_irq=5

Regards,
Thomas

#1 lore raw
Quoted 6 lines · Thomas Andrews

Would it not make more sense to prefix all module parameters in a more consistent manner eg:

    scx200_acb_base=0x810,0x820,0x830,0x840
    scx200_acb_sioaddr=0x2e,0x4e,0x15c
    scx200_acb_irq=5

No. With the current implementation, you have to specify scx200_acb.base=0x810,0x820,0x830,0x840 to pass the 'base' parameter to the scx200_acb module.

See linux/Documentation/kernel-parameters.txt for more information.

Regards,
Brix

Signature · 9 lines
Henrik Brix Andersen <brix at gentoo.org>
Gentoo Metadistribution | Mobile computing herd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060504/99a40928/attachment.bin