]> git.baikalelectronics.ru Git - kernel.git/commit
param: add a free hook to kernel_param_ops.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:17 +0000 (23:04 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:18 +0000 (23:04 +0930)
commitfa7d314d4f161066dcd9fc7163b8ce4b2bb65c6a
tree0858a2cd08fffad89c05ab4a0d14ae832777f42b
parentf833f6def31b3d5b09caafc1b4e43b973c900608
param: add a free hook to kernel_param_ops.

This allows us to generalize the KPARAM_KMALLOCED flag, by calling a function
on every parameter when a module is unloaded.

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