]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] beginning of sysctl cleanup - ctl_table_set
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Jul 2008 01:22:20 +0000 (21:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:08 +0000 (20:53 -0400)
commit13d3842acfb308cc3a624abec7d3747cc095ccb0
tree7be4b0808ba9860f1d953b45120262a277866021
parent5ff087823c186079c2f8b588144b7a36e2789291
[PATCH] beginning of sysctl cleanup - ctl_table_set

New object: set of sysctls [currently - root and per-net-ns].
Contains: pointer to parent set, list of tables and "should I see this set?"
method (->is_seen(set)).
Current lists of tables are subsumed by that; net-ns contains such a beast.
->lookup() for ctl_table_root returns pointer to ctl_table_set instead of
that to ->list of that ctl_table_set.

[folded compile fixes by rdd for configs without sysctl]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/sysctl.h
include/net/net_namespace.h
kernel/sysctl.c
net/sysctl_net.c