2 * NET4: Sysctl interface to net af_unix subsystem.
4 * Authors: Mike Shaver.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
13 #include <linux/sysctl.h>
15 extern int sysctl_unix_max_dgram_qlen;
17 ctl_table unix_table[] = {
18 {NET_UNIX_MAX_DGRAM_QLEN, "max_dgram_qlen",
19 &sysctl_unix_max_dgram_qlen, sizeof(int), 0644, NULL,
24 static ctl_table unix_net_table[] = {
25 {NET_UNIX, "unix", NULL, 0, 0555, unix_table},
29 static ctl_table unix_root_table[] = {
30 {CTL_NET, "net", NULL, 0, 0555, unix_net_table},
34 static struct ctl_table_header * unix_sysctl_header;
36 void unix_sysctl_register(void)
38 unix_sysctl_header = register_sysctl_table(unix_root_table, 0);
41 void unix_sysctl_unregister(void)
43 unregister_sysctl_table(unix_sysctl_header);