You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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
@@ -92,31 +92,17 @@ static struct ctl_table llc_table[] = {
|
||||
{ 0 },
|
||||
};
|
||||
|
||||
static struct ctl_table llc_dir_table[] = {
|
||||
{
|
||||
.ctl_name = NET_LLC,
|
||||
.procname = "llc",
|
||||
.mode = 0555,
|
||||
.child = llc_table,
|
||||
},
|
||||
{ 0 },
|
||||
};
|
||||
|
||||
static struct ctl_table llc_root_table[] = {
|
||||
{
|
||||
.ctl_name = CTL_NET,
|
||||
.procname = "net",
|
||||
.mode = 0555,
|
||||
.child = llc_dir_table,
|
||||
},
|
||||
{ 0 },
|
||||
static struct ctl_path llc_path[] = {
|
||||
{ .procname = "net", .ctl_name = CTL_NET, },
|
||||
{ .procname = "llc", .ctl_name = NET_LLC, },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct ctl_table_header *llc_table_header;
|
||||
|
||||
int __init llc_sysctl_init(void)
|
||||
{
|
||||
llc_table_header = register_sysctl_table(llc_root_table);
|
||||
llc_table_header = register_sysctl_paths(llc_path, llc_table);
|
||||
|
||||
return llc_table_header ? 0 : -ENOMEM;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user