2 * sysctl.c - System control stuff
4 * Copyright (C) 1997 Martin von Löwis
5 * Copyright (C) 1997 Régis Duchesne
11 #include <linux/locks.h>
12 #include <linux/sysctl.h>
16 /* Add or remove the debug sysctl
17 * Is this really the only file system with sysctls ?
19 void ntfs_sysctl(int add)
22 /* Definition of the sysctl */
23 static ctl_table ntfs_sysctls[]={
25 "ntfs-debug", /* name in /proc */
26 &ntdebug,sizeof(ntdebug), /* data ptr, data size */
29 proc_dointvec, /* proc handler */
31 0, /* proc control block */
35 /* Define the parent file : /proc/sys/fs */
36 static ctl_table sysctls_root[]={
44 static struct ctl_table_header *sysctls_root_header = NULL;
47 if(!sysctls_root_header)
48 sysctls_root_header = register_sysctl_table(sysctls_root, 0);
49 } else if(sysctls_root_header) {
50 unregister_sysctl_table(sysctls_root_header);
51 sysctls_root_header = NULL;