sysctl.c (46557bef3f3834ac33031c7be27d39d90d507442) sysctl.c (6d4561110a3e9fa742aeec6717248a491dfb1878)
1/*
2 * linux/net/sunrpc/sysctl.c
3 *
4 * Sysctl interface to sunrpc module.
5 *
6 * I would prefer to register the sunrpc table below sys/net, but that's
7 * impossible at the moment.
8 */

--- 125 unchanged lines hidden (view full) ---

134
135
136static ctl_table debug_table[] = {
137 {
138 .procname = "rpc_debug",
139 .data = &rpc_debug,
140 .maxlen = sizeof(int),
141 .mode = 0644,
1/*
2 * linux/net/sunrpc/sysctl.c
3 *
4 * Sysctl interface to sunrpc module.
5 *
6 * I would prefer to register the sunrpc table below sys/net, but that's
7 * impossible at the moment.
8 */

--- 125 unchanged lines hidden (view full) ---

134
135
136static ctl_table debug_table[] = {
137 {
138 .procname = "rpc_debug",
139 .data = &rpc_debug,
140 .maxlen = sizeof(int),
141 .mode = 0644,
142 .proc_handler = &proc_dodebug
142 .proc_handler = proc_dodebug
143 },
144 {
145 .procname = "nfs_debug",
146 .data = &nfs_debug,
147 .maxlen = sizeof(int),
148 .mode = 0644,
143 },
144 {
145 .procname = "nfs_debug",
146 .data = &nfs_debug,
147 .maxlen = sizeof(int),
148 .mode = 0644,
149 .proc_handler = &proc_dodebug
149 .proc_handler = proc_dodebug
150 },
151 {
152 .procname = "nfsd_debug",
153 .data = &nfsd_debug,
154 .maxlen = sizeof(int),
155 .mode = 0644,
150 },
151 {
152 .procname = "nfsd_debug",
153 .data = &nfsd_debug,
154 .maxlen = sizeof(int),
155 .mode = 0644,
156 .proc_handler = &proc_dodebug
156 .proc_handler = proc_dodebug
157 },
158 {
159 .procname = "nlm_debug",
160 .data = &nlm_debug,
161 .maxlen = sizeof(int),
162 .mode = 0644,
157 },
158 {
159 .procname = "nlm_debug",
160 .data = &nlm_debug,
161 .maxlen = sizeof(int),
162 .mode = 0644,
163 .proc_handler = &proc_dodebug
163 .proc_handler = proc_dodebug
164 },
165 {
166 .procname = "transports",
167 .maxlen = 256,
168 .mode = 0444,
164 },
165 {
166 .procname = "transports",
167 .maxlen = 256,
168 .mode = 0444,
169 .proc_handler = &proc_do_xprt,
169 .proc_handler = proc_do_xprt,
170 },
170 },
171 { .ctl_name = 0 }
171 { }
172};
173
174static ctl_table sunrpc_table[] = {
175 {
172};
173
174static ctl_table sunrpc_table[] = {
175 {
176 .ctl_name = CTL_SUNRPC,
177 .procname = "sunrpc",
178 .mode = 0555,
179 .child = debug_table
180 },
176 .procname = "sunrpc",
177 .mode = 0555,
178 .child = debug_table
179 },
181 { .ctl_name = 0 }
180 { }
182};
183
184#endif
181};
182
183#endif