diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-10 06:42:02 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-25 01:40:29 +0100 |
commit | 076c3eed2c31773200b082568957fd8852ae93d7 (patch) | |
tree | 76ddb1483d7a4a04d7910810e8f1dda7be43bf5a /net | |
parent | sysctl: Normalize the root_table data structure. (diff) | |
download | linux-076c3eed2c31773200b082568957fd8852ae93d7.tar.xz linux-076c3eed2c31773200b082568957fd8852ae93d7.zip |
sysctl: Rewrite proc_sys_lookup introducing find_entry and lookup_entry.
Replace the helpers that proc_sys_lookup uses with helpers that work
in terms of an entire sysctl directory. This is worse for sysctl_lock
hold times but it is much better for code clarity and the code cleanups
to come.
find_in_table is no longer needed so it is removed.
find_entry a general helper to find entries in a directory is added.
lookup_entry is a simple wrapper around find_entry that takes the
sysctl_lock increases the use count if an entry is found and drops
the sysctl_lock.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions