[NET]: Simple ctl_table to ctl_path conversions.
This patch includes many places, that only required replacing the ctl_table-s with appropriate ctl_paths and call register_sysctl_paths(). Nothing special was done with them. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cb7928a528
commit
b5ccd792fa
@ -84,29 +84,15 @@ static struct ctl_table x25_table[] = {
|
||||
{ 0, },
|
||||
};
|
||||
|
||||
static struct ctl_table x25_dir_table[] = {
|
||||
{
|
||||
.ctl_name = NET_X25,
|
||||
.procname = "x25",
|
||||
.mode = 0555,
|
||||
.child = x25_table,
|
||||
},
|
||||
{ 0, },
|
||||
};
|
||||
|
||||
static struct ctl_table x25_root_table[] = {
|
||||
{
|
||||
.ctl_name = CTL_NET,
|
||||
.procname = "net",
|
||||
.mode = 0555,
|
||||
.child = x25_dir_table,
|
||||
},
|
||||
{ 0, },
|
||||
static struct ctl_path x25_path[] = {
|
||||
{ .procname = "net", .ctl_name = CTL_NET, },
|
||||
{ .procname = "x25", .ctl_name = NET_X25, },
|
||||
{ }
|
||||
};
|
||||
|
||||
void __init x25_register_sysctl(void)
|
||||
{
|
||||
x25_table_header = register_sysctl_table(x25_root_table);
|
||||
x25_table_header = register_sysctl_paths(x25_path, x25_table);
|
||||
}
|
||||
|
||||
void x25_unregister_sysctl(void)
|
||||
|
Reference in New Issue
Block a user