module: add kernel param to force disable module load
authorDave Young <dyoung@redhat.com>
Wed, 1 Feb 2012 02:33:14 +0000 (10:33 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Mar 2012 02:20:50 +0000 (12:50 +1030)
commit02608bef8f774c058779546926889a2f2717a499
treefdbdd5918c0d9a9f142c6c88535a2b18f13ce02c
parente22057c8599373e5caef0bc42bdb95d2a361ab0d
module: add kernel param to force disable module load

Sometimes we need to test a kernel of same version with code or config
option changes.

We already have sysctl to disable module load, but add a kernel
parameter will be more convenient.

Since modules_disabled is int, so here use bint type in core_param.
TODO: make sysctl accept bool and change modules_disabled to bool

Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Documentation/kernel-parameters.txt
kernel/module.c