1 // SPDX-License-Identifier: GPL-2.0
3 * Sysctl operations for Coda filesystem
4 * Original version: (C) 1996 P. Braam and M. Callahan
5 * Rewritten for Linux 2.1. (C) 1997 Carnegie Mellon University
7 * Carnegie Mellon encourages users to contribute improvements to
8 * the Coda project. Contact Peter Braam (coda@cs.cmu.edu).
11 #include <linux/sysctl.h>
15 static struct ctl_table_header
*fs_table_header
;
17 static struct ctl_table coda_table
[] = {
19 .procname
= "timeout",
20 .data
= &coda_timeout
,
21 .maxlen
= sizeof(int),
23 .proc_handler
= proc_dointvec
28 .maxlen
= sizeof(int),
30 .proc_handler
= proc_dointvec
33 .procname
= "fake_statfs",
34 .data
= &coda_fake_statfs
,
35 .maxlen
= sizeof(int),
37 .proc_handler
= proc_dointvec
41 void coda_sysctl_init(void)
43 if ( !fs_table_header
)
44 fs_table_header
= register_sysctl("coda", coda_table
);
47 void coda_sysctl_clean(void)
49 if ( fs_table_header
) {
50 unregister_sysctl_table(fs_table_header
);
51 fs_table_header
= NULL
;