diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-18 03:15:51 -0800 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-24 16:40:29 -0800 |
commit | 6a75ce167c53b41f15088d3c2c7e51c89dc8798a (patch) | |
tree | 78c811b59a0ca61ac3b34118a726c0c6554bd68e /include/linux/sysctl.h | |
parent | 076c3eed2c31773200b082568957fd8852ae93d7 (diff) | |
download | linux-6a75ce167c53b41f15088d3c2c7e51c89dc8798a.tar.gz linux-6a75ce167c53b41f15088d3c2c7e51c89dc8798a.tar.bz2 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 'include/linux/sysctl.h')
0 files changed, 0 insertions, 0 deletions