6 * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2
10 * as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to:
19 * Free Software Foundation
20 * 51 Franklin Street, Fifth Floor
21 * Boston, MA 02111-1301 USA
25 #include <linux/kernel.h>
27 #include <linux/sysctl.h>
28 #include <linux/init.h>
29 #include <net/9p/9p.h>
31 static struct ctl_table p9_table[] = {
32 #ifdef CONFIG_NET_9P_DEBUG
34 .ctl_name = CTL_UNNUMBERED,
36 .data = &p9_debug_level,
37 .maxlen = sizeof(int),
39 .proc_handler = &proc_dointvec
45 static struct ctl_table p9_net_table[] = {
47 .ctl_name = CTL_UNNUMBERED,
56 static struct ctl_table p9_ctl_table[] = {
62 .child = p9_net_table,
67 static struct ctl_table_header *p9_table_header;
69 int __init p9_sysctl_register(void)
71 p9_table_header = register_sysctl_table(p9_ctl_table);
78 void __exit p9_sysctl_unregister(void)
80 unregister_sysctl_table(p9_table_header);