Home
last modified time | relevance | path

Searched hist:"6 a75ce16" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/proc/
H A Dproc_sysctl.c6a75ce16 Wed Jan 18 05:15:51 CST 2012 Eric W. Biederman <ebiederm@xmission.com> 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>
6a75ce16 Wed Jan 18 05:15:51 CST 2012 Eric W. Biederman <ebiederm@xmission.com> 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>