diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-23 00:26:00 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-24 19:40:29 -0500 |
commit | 9eb47c26f09e27506d343ef52e634b2a50ee21ef (patch) | |
tree | 6055ec285771cf35c233d63c783b5c8381847094 /include/linux/sysctl.h | |
parent | 6a75ce167c53b41f15088d3c2c7e51c89dc8798a (diff) |
sysctl: Add a root pointer to ctl_table_set
Add a ctl_table_root pointer to ctl_table set so it is easy to
go from a ctl_table_set to a ctl_table_root.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/sysctl.h')
-rw-r--r-- | include/linux/sysctl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index e40b8f6e5d0e..e73ba33cbf08 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -1047,6 +1047,7 @@ struct ctl_table_header | |||
1047 | 1047 | ||
1048 | struct ctl_table_set { | 1048 | struct ctl_table_set { |
1049 | struct list_head list; | 1049 | struct list_head list; |
1050 | struct ctl_table_root *root; | ||
1050 | int (*is_seen)(struct ctl_table_set *); | 1051 | int (*is_seen)(struct ctl_table_set *); |
1051 | }; | 1052 | }; |
1052 | 1053 | ||
@@ -1069,6 +1070,7 @@ struct ctl_path { | |||
1069 | void proc_sys_poll_notify(struct ctl_table_poll *poll); | 1070 | void proc_sys_poll_notify(struct ctl_table_poll *poll); |
1070 | 1071 | ||
1071 | extern void setup_sysctl_set(struct ctl_table_set *p, | 1072 | extern void setup_sysctl_set(struct ctl_table_set *p, |
1073 | struct ctl_table_root *root, | ||
1072 | int (*is_seen)(struct ctl_table_set *)); | 1074 | int (*is_seen)(struct ctl_table_set *)); |
1073 | extern void retire_sysctl_set(struct ctl_table_set *set); | 1075 | extern void retire_sysctl_set(struct ctl_table_set *set); |
1074 | 1076 | ||
@@ -1103,6 +1105,7 @@ static inline void unregister_sysctl_table(struct ctl_table_header * table) | |||
1103 | } | 1105 | } |
1104 | 1106 | ||
1105 | static inline void setup_sysctl_set(struct ctl_table_set *p, | 1107 | static inline void setup_sysctl_set(struct ctl_table_set *p, |
1108 | struct ctl_table_root *root, | ||
1106 | int (*is_seen)(struct ctl_table_set *)) | 1109 | int (*is_seen)(struct ctl_table_set *)) |
1107 | { | 1110 | { |
1108 | } | 1111 | } |