2 * Sysctl operations for Coda filesystem
3 * Original version: (C) 1996 P. Braam and M. Callahan
4 * Rewritten for Linux 2.1. (C) 1997 Carnegie Mellon University
6 * Carnegie Mellon encourages users to contribute improvements to
7 * the Coda project. Contact Peter Braam (coda@cs.cmu.edu).
10 #include <linux/sysctl.h>
14 static struct ctl_table_header
*fs_table_header
;
16 static ctl_table coda_table
[] = {
18 .ctl_name
= CTL_UNNUMBERED
,
19 .procname
= "timeout",
20 .data
= &coda_timeout
,
21 .maxlen
= sizeof(int),
23 .proc_handler
= &proc_dointvec
26 .ctl_name
= CTL_UNNUMBERED
,
29 .maxlen
= sizeof(int),
31 .proc_handler
= &proc_dointvec
34 .ctl_name
= CTL_UNNUMBERED
,
35 .procname
= "fake_statfs",
36 .data
= &coda_fake_statfs
,
37 .maxlen
= sizeof(int),
39 .proc_handler
= &proc_dointvec
44 static ctl_table fs_table
[] = {
46 .ctl_name
= CTL_UNNUMBERED
,
55 void coda_sysctl_init(void)
58 if ( !fs_table_header
)
59 fs_table_header
= register_sysctl_table(fs_table
);
63 void coda_sysctl_clean(void)
66 if ( fs_table_header
) {
67 unregister_sysctl_table(fs_table_header
);
68 fs_table_header
= NULL
;