Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78238
b: refs/heads/master
c: 1d430b9
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jan 28, 2008
1 parent 32baf78 commit 196681a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d392e49756a99ba51577d265d6db83e3f01c6ac8
refs/heads/master: 1d430b913c2e6293a80a4a422406bc9489a476ad
24 changes: 5 additions & 19 deletions trunk/net/unix/sysctl_net_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,17 @@ static ctl_table unix_table[] = {
{ .ctl_name = 0 }
};

static ctl_table unix_net_table[] = {
{
.ctl_name = NET_UNIX,
.procname = "unix",
.mode = 0555,
.child = unix_table
},
{ .ctl_name = 0 }
};

static ctl_table unix_root_table[] = {
{
.ctl_name = CTL_NET,
.procname = "net",
.mode = 0555,
.child = unix_net_table
},
{ .ctl_name = 0 }
static struct ctl_path unix_path[] = {
{ .procname = "net", .ctl_name = CTL_NET, },
{ .procname = "unix", .ctl_name = NET_UNIX, },
{ },
};

static struct ctl_table_header * unix_sysctl_header;

int unix_sysctl_register(struct net *net)
{
unix_sysctl_header = register_sysctl_table(unix_root_table);
unix_sysctl_header = register_sysctl_paths(unix_path, unix_table);
return unix_sysctl_header == NULL ? -ENOMEM : 0;
}

Expand Down

0 comments on commit 196681a

Please sign in to comment.