2 * osi_sysctl.c: Linux sysctl interface to OpenAFS
6 * Written Jan 30, 2002 by Kris Van Hees (Sine Nomine Associates)
10 #include "afs/param.h"
12 #include "afs/sysincludes.h" /* Standard vendor system headers */
13 #include "afsincludes.h" /* Afs-based standard headers */
14 #include "afs/afs_stats.h" /* afs statistics */
16 #include <linux/sysctl.h>
17 #include <linux/config.h>
19 /* From afs_analyze.c */
20 extern afs_int32 hm_retry_RO;
21 extern afs_int32 hm_retry_RW;
22 extern afs_int32 hm_retry_int;
25 static struct ctl_table_header *afs_sysctl = NULL;
27 static ctl_table afs_sysctl_table[] = {
29 &hm_retry_RO, sizeof(afs_int32), 0644, NULL,
32 &hm_retry_RW, sizeof(afs_int32), 0644, NULL,
35 &hm_retry_int, sizeof(afs_int32), 0644, NULL,
38 &afs_gcpags, sizeof(afs_int32), 0644, NULL,
41 &afs_rx_deadtime, sizeof(afs_int32), 0644, NULL,
46 static ctl_table fs_sysctl_table[] = {
47 {1, "afs", NULL, 0, 0555, afs_sysctl_table},
53 afs_sysctl = register_sysctl_table(fs_sysctl_table, 0);
60 void osi_sysctl_clean()
63 unregister_sysctl_table(afs_sysctl);
68 #endif /* CONFIG_SYSCTL */