From: Eric W. Biederman Date: Wed, 14 Feb 2007 08:34:11 +0000 (-0800) Subject: [PATCH] sysctl: factor out sysctl_head_next from do_sysctl X-Git-Tag: v2.6.21-rc1~192 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=805b5d5e063e7fde5e2eb724e3f4cb18e47cab19;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed