]> git.baikalelectronics.ru Git - kernel.git/commit
param: locking for kernel parameters
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:19 +0000 (23:04 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:20 +0000 (23:04 +0930)
commitbeea1579b5a306d9bd27aff7570d6758cd3c096d
tree12a7142ffa81a65da204384dfa26365d30803735
parentf3dd596bd456bdd5dc8d4fb0df000d52b91c1df9
param: locking for kernel parameters

There may be cases (most obviously, sysfs-writable charp parameters) where
a module needs to prevent sysfs access to parameters.

Rather than express this in terms of a big lock, the functions are
expressed in terms of what they protect against.  This is clearer, esp.
if the implementation changes to a module-level or even param-level lock.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
include/linux/moduleparam.h
kernel/params.c