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>
15 static struct ctl_table_header
*fs_table_header
;
18 static ctl_table coda_table
[] = {
20 .ctl_name
= CTL_UNNUMBERED
,
21 .procname
= "timeout",
22 .data
= &coda_timeout
,
23 .maxlen
= sizeof(int),
25 .proc_handler
= &proc_dointvec
28 .ctl_name
= CTL_UNNUMBERED
,
31 .maxlen
= sizeof(int),
33 .proc_handler
= &proc_dointvec
36 .ctl_name
= CTL_UNNUMBERED
,
37 .procname
= "fake_statfs",
38 .data
= &coda_fake_statfs
,
39 .maxlen
= sizeof(int),
41 .proc_handler
= &proc_dointvec
47 static ctl_table fs_table
[] = {
49 .ctl_name
= CTL_UNNUMBERED
,
58 void coda_sysctl_init(void)
61 if ( !fs_table_header
)
62 fs_table_header
= register_sysctl_table(fs_table
);
66 void coda_sysctl_clean(void)
69 if ( fs_table_header
) {
70 unregister_sysctl_table(fs_table_header
);
71 fs_table_header
= NULL
;