added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / fs / coda / sysctl.c
blob4d47d05a103ce634b34ac2219c8bc34923fc74a0
1 /*
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
5 *
6 * Carnegie Mellon encourages users to contribute improvements to
7 * the Coda project. Contact Peter Braam (coda@cs.cmu.edu).
8 */
10 #include <linux/sysctl.h>
12 #include "coda_int.h"
14 #ifdef CONFIG_SYSCTL
15 static struct ctl_table_header *fs_table_header;
16 #endif
18 static ctl_table coda_table[] = {
20 .ctl_name = CTL_UNNUMBERED,
21 .procname = "timeout",
22 .data = &coda_timeout,
23 .maxlen = sizeof(int),
24 .mode = 0644,
25 .proc_handler = &proc_dointvec
28 .ctl_name = CTL_UNNUMBERED,
29 .procname = "hard",
30 .data = &coda_hard,
31 .maxlen = sizeof(int),
32 .mode = 0644,
33 .proc_handler = &proc_dointvec
36 .ctl_name = CTL_UNNUMBERED,
37 .procname = "fake_statfs",
38 .data = &coda_fake_statfs,
39 .maxlen = sizeof(int),
40 .mode = 0600,
41 .proc_handler = &proc_dointvec
46 #ifdef CONFIG_SYSCTL
47 static ctl_table fs_table[] = {
49 .ctl_name = CTL_UNNUMBERED,
50 .procname = "coda",
51 .mode = 0555,
52 .child = coda_table
56 #endif
58 void coda_sysctl_init(void)
60 if (!fs_table_header)
61 fs_table_header = register_sysctl_table(fs_table);
64 void coda_sysctl_clean(void)
66 if (fs_table_header) {
67 unregister_sysctl_table(fs_table_header);
68 fs_table_header = NULL;