Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Commit [907b29] Maximize Restore History

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>

Rusty Russell Rusty Russell 2010-08-12

changed include/linux/moduleparam.h
changed kernel/params.c
include/linux/moduleparam.h Diff Switch to side-by-side view
kernel/params.c Diff Switch to side-by-side view