]> git.baikalelectronics.ru Git - kernel.git/commit
core_param() for genuinely core kernel parameters
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 22 Oct 2008 15:00:23 +0000 (10:00 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 21 Oct 2008 23:00:23 +0000 (10:00 +1100)
commit64cdb77311a980dbcf85601924f4656f48724ae0
tree59523536661c93dce7a02557ca6ac5827a7bf75f
parentd260fbb6dd51c45e7a55b715238e67aceec9cf7c
core_param() for genuinely core kernel parameters

There are a lot of one-liner uses of __setup() in the kernel: they're
cumbersome and not queryable (definitely not settable) via /sys.  Yet
it's ugly to simplify them to module_param(), because by default that
inserts a prefix of the module name (usually filename).

So, introduce a "core_param".  The parameter gets no prefix, but
appears in /sys/module/kernel/parameters/ (if non-zero perms arg).  I
thought about using the name "core", but that's more common than
"kernel".  And if you create a module called "kernel", you will die
a horrible death.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/moduleparam.h
kernel/params.c