summaryrefslogtreecommitdiffstats
path: root/net/sysctl_net.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-01-18 12:15:51 +0100
committerEric W. Biederman <ebiederm@xmission.com>2012-01-25 01:40:29 +0100
commit6a75ce167c53b41f15088d3c2c7e51c89dc8798a (patch)
tree78c811b59a0ca61ac3b34118a726c0c6554bd68e /net/sysctl_net.c
parentsysctl: Rewrite proc_sys_lookup introducing find_entry and lookup_entry. (diff)
downloadlinux-6a75ce167c53b41f15088d3c2c7e51c89dc8798a.tar.xz
linux-6a75ce167c53b41f15088d3c2c7e51c89dc8798a.zip
sysctl: Rewrite proc_sys_readdir in terms of first_entry and next_entry
Replace sysctl_head_next with first_entry and next_entry. These new iterators operate at the level of sysctl table entries and filter out any sysctl tables that should not be shown. Utilizing two specialized functions instead of a single function removes conditionals for handling awkward special cases that only come up at the beginning of iteration, making the iterators easier to read and understand. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions