[PATCH] sysctl: factor out sysctl_head_next from do_sysctl
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 14 Feb 2007 08:34:11 +0000 (00:34 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:59 +0000 (08:09 -0800)
commit805b5d5e063e7fde5e2eb724e3f4cb18e47cab19
tree920f66deb8d6286ee819ac0402d1771543a12a88
parent0b4d414714f0d2f922d39424b0c5c82ad900a381
[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>
include/linux/sysctl.h
kernel/sysctl.c