5 * Copyright (C) 1997 Martin von Löwis
6 * Copyright (C) 1997 Régis Duchesne
13 #include <linux/locks.h>
14 #include <linux/sysctl.h>
18 /* Add or remove the debug sysctl
19 * Is this really the only file system with sysctls ?
21 void ntfs_sysctl(int add
)
24 /* Definition of the sysctl */
25 static ctl_table ntfs_sysctls
[]={
27 "ntfs-debug", /* name in /proc */
28 &ntdebug
,sizeof(ntdebug
), /* data ptr, data size */
31 proc_dointvec
, /* proc handler */
33 0, /* proc control block */
37 /* Define the parent file : /proc/sys/fs */
38 static ctl_table sysctls_root
[]={
46 static struct ctl_table_header
*sysctls_root_header
= NULL
;
49 if(!sysctls_root_header
)
50 sysctls_root_header
= register_sysctl_table(sysctls_root
, 0);
51 } else if(sysctls_root_header
) {
52 unregister_sysctl_table(sysctls_root_header
);
53 sysctls_root_header
= NULL
;
60 * c-file-style: "linux"