summaryrefslogtreecommitdiff
path: root/net/sysctl_net.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-01-18 15:15:51 +0400
committerEric W. Biederman <ebiederm@xmission.com>2012-01-25 04:40:29 +0400
commit6a75ce167c53b41f15088d3c2c7e51c89dc8798a (patch)
tree78c811b59a0ca61ac3b34118a726c0c6554bd68e /net/sysctl_net.c
parent076c3eed2c31773200b082568957fd8852ae93d7 (diff)
downloadlinux-6a75ce167c53b41f15088d3c2c7e51c89dc8798a.tar.xz
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