diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-14 03:34:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:59 -0500 |
commit | 805b5d5e063e7fde5e2eb724e3f4cb18e47cab19 (patch) | |
tree | 920f66deb8d6286ee819ac0402d1771543a12a88 /include | |
parent | 0b4d414714f0d2f922d39424b0c5c82ad900a381 (diff) |
[PATCH] sysctl: factor out sysctl_head_next from do_sysctl
The current logic to walk through the list of sysctl table headers is slightly
painful and implement in a way it cannot be used by code outside sysctl.c
I am in the process of implementing a version of the sysctl proc support that
instead of using the proc generic non-caching monster, just uses the existing
sysctl data structure as backing store for building the dcache entries and for
doing directory reads. To use the existing data structures however I need a
way to get at them.
[akpm@osdl.org: warning fix]
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sysctl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 396b8d984c5d..72ba58b362d8 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -924,6 +924,10 @@ enum | |||
924 | #ifdef __KERNEL__ | 924 | #ifdef __KERNEL__ |
925 | #include <linux/list.h> | 925 | #include <linux/list.h> |
926 | 926 | ||
927 | /* For the /proc/sys support */ | ||
928 | extern struct ctl_table_header *sysctl_head_next(struct ctl_table_header *prev); | ||
929 | extern void sysctl_head_finish(struct ctl_table_header *prev); | ||
930 | |||
927 | extern void sysctl_init(void); | 931 | extern void sysctl_init(void); |
928 | 932 | ||
929 | typedef struct ctl_table ctl_table; | 933 | typedef struct ctl_table ctl_table; |