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)
commite6df34a4429b77fdffb6e05adf263468a3dcda33
tree0858a2cd08fffad89c05ab4a0d14ae832777f42b
parent6a841528d288ac420052f5c98fd426b0fcdc5b52
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