1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2001 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
9 #include <linux/sched.h>
11 #include <linux/sysctl.h>
12 #include <linux/swapctl.h>
13 #include <linux/proc_fs.h>
14 #include <linux/slab.h>
15 #include <linux/stat.h>
16 #include <linux/ctype.h>
17 #include <asm/bitops.h>
18 #include <asm/segment.h>
19 #include <asm/uaccess.h>
20 #include <linux/utsname.h>
22 struct ctl_table_header *ll_table_header = NULL;
24 int ll_debug_level = 0;
25 int ll_print_entry = 1;
30 #define LL_DEBUG 1 /* control debugging */
31 #define LL_ENTRY 2 /* control enter/leave pattern */
32 #define LL_TIMEOUT 3 /* timeout on upcalls to become intrble */
33 #define LL_HARD 4 /* mount type "hard" or "soft" */
38 #define LL_VARS_SLOT 2
40 static ctl_table ll_table[] = {
41 {LL_DEBUG, "debug", &ll_debug_level, sizeof(int), 0644, NULL, &proc_dointvec},
42 {LL_ENTRY, "trace", &ll_print_entry, sizeof(int), 0644, NULL, &proc_dointvec},
46 static ctl_table top_table[] = {
47 {LL_SYSCTL, "lustre_light", NULL, 0, 0555, ll_table},
51 void ll_sysctl_init (void)
55 if ( !ll_table_header )
56 ll_table_header = register_sysctl_table(top_table, 0);
60 void ll_sysctl_clean (void)
63 if ( ll_table_header )
64 unregister_sysctl_table(ll_table_header);
65 ll_table_header = NULL;