diff options
Diffstat (limited to 'include/linux/sysctl.h')
-rw-r--r-- | include/linux/sysctl.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 665412c4f4b9..2c5fb38d9392 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -53,7 +53,6 @@ struct __sysctl_args { | |||
53 | 53 | ||
54 | /* For internal pattern-matching use only: */ | 54 | /* For internal pattern-matching use only: */ |
55 | #ifdef __KERNEL__ | 55 | #ifdef __KERNEL__ |
56 | #define CTL_ANY -1 /* Matches any name */ | ||
57 | #define CTL_NONE 0 | 56 | #define CTL_NONE 0 |
58 | #define CTL_UNNUMBERED CTL_NONE /* sysctl without a binary number */ | 57 | #define CTL_UNNUMBERED CTL_NONE /* sysctl without a binary number */ |
59 | #endif | 58 | #endif |
@@ -69,7 +68,13 @@ enum | |||
69 | CTL_DEV=7, /* Devices */ | 68 | CTL_DEV=7, /* Devices */ |
70 | CTL_BUS=8, /* Busses */ | 69 | CTL_BUS=8, /* Busses */ |
71 | CTL_ABI=9, /* Binary emulation */ | 70 | CTL_ABI=9, /* Binary emulation */ |
72 | CTL_CPU=10 /* CPU stuff (speed scaling, etc) */ | 71 | CTL_CPU=10, /* CPU stuff (speed scaling, etc) */ |
72 | CTL_ARLAN=254, /* arlan wireless driver */ | ||
73 | CTL_APPLDATA=2120, /* s390 appldata */ | ||
74 | CTL_S390DBF=5677, /* s390 debug */ | ||
75 | CTL_SUNRPC=7249, /* sunrpc debug */ | ||
76 | CTL_PM=9899, /* frv power management */ | ||
77 | CTL_FRV=9898, /* frv specific sysctls */ | ||
73 | }; | 78 | }; |
74 | 79 | ||
75 | /* CTL_BUS names: */ | 80 | /* CTL_BUS names: */ |
@@ -202,6 +207,11 @@ enum | |||
202 | VM_PANIC_ON_OOM=33, /* panic at out-of-memory */ | 207 | VM_PANIC_ON_OOM=33, /* panic at out-of-memory */ |
203 | VM_VDSO_ENABLED=34, /* map VDSO into new processes? */ | 208 | VM_VDSO_ENABLED=34, /* map VDSO into new processes? */ |
204 | VM_MIN_SLAB=35, /* Percent pages ignored by zone reclaim */ | 209 | VM_MIN_SLAB=35, /* Percent pages ignored by zone reclaim */ |
210 | |||
211 | /* s390 vm cmm sysctls */ | ||
212 | VM_CMM_PAGES=1111, | ||
213 | VM_CMM_TIMED_PAGES=1112, | ||
214 | VM_CMM_TIMEOUT=1113, | ||
205 | }; | 215 | }; |
206 | 216 | ||
207 | 217 | ||
@@ -803,6 +813,7 @@ enum | |||
803 | FS_AIO_NR=18, /* current system-wide number of aio requests */ | 813 | FS_AIO_NR=18, /* current system-wide number of aio requests */ |
804 | FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */ | 814 | FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */ |
805 | FS_INOTIFY=20, /* inotify submenu */ | 815 | FS_INOTIFY=20, /* inotify submenu */ |
816 | FS_OCFS2=988, /* ocfs2 */ | ||
806 | }; | 817 | }; |
807 | 818 | ||
808 | /* /proc/sys/fs/quota/ */ | 819 | /* /proc/sys/fs/quota/ */ |
@@ -913,7 +924,11 @@ enum | |||
913 | #ifdef __KERNEL__ | 924 | #ifdef __KERNEL__ |
914 | #include <linux/list.h> | 925 | #include <linux/list.h> |
915 | 926 | ||
916 | extern void sysctl_init(void); | 927 | /* For the /proc/sys support */ |
928 | struct ctl_table; | ||
929 | extern struct ctl_table_header *sysctl_head_next(struct ctl_table_header *prev); | ||
930 | extern void sysctl_head_finish(struct ctl_table_header *prev); | ||
931 | extern int sysctl_perm(struct ctl_table *table, int op); | ||
917 | 932 | ||
918 | typedef struct ctl_table ctl_table; | 933 | typedef struct ctl_table ctl_table; |
919 | 934 | ||
@@ -1007,9 +1022,9 @@ struct ctl_table | |||
1007 | int maxlen; | 1022 | int maxlen; |
1008 | mode_t mode; | 1023 | mode_t mode; |
1009 | ctl_table *child; | 1024 | ctl_table *child; |
1025 | ctl_table *parent; /* Automatically set */ | ||
1010 | proc_handler *proc_handler; /* Callback for text formatting */ | 1026 | proc_handler *proc_handler; /* Callback for text formatting */ |
1011 | ctl_handler *strategy; /* Callback function for all r/w */ | 1027 | ctl_handler *strategy; /* Callback function for all r/w */ |
1012 | struct proc_dir_entry *de; /* /proc control block */ | ||
1013 | void *extra1; | 1028 | void *extra1; |
1014 | void *extra2; | 1029 | void *extra2; |
1015 | }; | 1030 | }; |
@@ -1024,8 +1039,8 @@ struct ctl_table_header | |||
1024 | struct completion *unregistering; | 1039 | struct completion *unregistering; |
1025 | }; | 1040 | }; |
1026 | 1041 | ||
1027 | struct ctl_table_header * register_sysctl_table(ctl_table * table, | 1042 | struct ctl_table_header * register_sysctl_table(ctl_table * table); |
1028 | int insert_at_head); | 1043 | |
1029 | void unregister_sysctl_table(struct ctl_table_header * table); | 1044 | void unregister_sysctl_table(struct ctl_table_header * table); |
1030 | 1045 | ||
1031 | #else /* __KERNEL__ */ | 1046 | #else /* __KERNEL__ */ |