diff options
Diffstat (limited to 'include/linux/moduleparam.h')
-rw-r--r-- | include/linux/moduleparam.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index 9bbca8e8c19f..009a5f768768 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h | |||
@@ -36,9 +36,13 @@ typedef int (*param_set_fn)(const char *val, struct kernel_param *kp); | |||
36 | /* Returns length written or -errno. Buffer is 4k (ie. be short!) */ | 36 | /* Returns length written or -errno. Buffer is 4k (ie. be short!) */ |
37 | typedef int (*param_get_fn)(char *buffer, struct kernel_param *kp); | 37 | typedef int (*param_get_fn)(char *buffer, struct kernel_param *kp); |
38 | 38 | ||
39 | /* Flag bits for kernel_param.flags */ | ||
40 | #define KPARAM_KMALLOCED 1 | ||
41 | |||
39 | struct kernel_param { | 42 | struct kernel_param { |
40 | const char *name; | 43 | const char *name; |
41 | unsigned int perm; | 44 | u16 perm; |
45 | u16 flags; | ||
42 | param_set_fn set; | 46 | param_set_fn set; |
43 | param_get_fn get; | 47 | param_get_fn get; |
44 | union { | 48 | union { |
@@ -88,7 +92,7 @@ struct kparam_array | |||
88 | static struct kernel_param __moduleparam_const __param_##name \ | 92 | static struct kernel_param __moduleparam_const __param_##name \ |
89 | __used \ | 93 | __used \ |
90 | __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) \ | 94 | __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) \ |
91 | = { __param_str_##name, perm, set, get, { arg } } | 95 | = { __param_str_##name, perm, 0, set, get, { arg } } |
92 | 96 | ||
93 | #define module_param_call(name, set, get, arg, perm) \ | 97 | #define module_param_call(name, set, get, arg, perm) \ |
94 | __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) | 98 | __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) |