diff options
| author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
|---|---|---|
| committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
| commit | 0bd2af46839ad6262d25714a6ec0365db9d6b98f (patch) | |
| tree | dcced72d230d69fd0c5816ac6dd03ab84799a93e /include/linux/sysctl.h | |
| parent | e138a5d2356729b8752e88520cc1525fae9794ac (diff) | |
| parent | f26b90440cd74c78fe10c9bd5160809704a9627c (diff) | |
Merge ../scsi-rc-fixes-2.6
Diffstat (limited to 'include/linux/sysctl.h')
| -rw-r--r-- | include/linux/sysctl.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 1b24bd45e080..d98562f1df76 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
| @@ -6,10 +6,17 @@ | |||
| 6 | **************************************************************** | 6 | **************************************************************** |
| 7 | **************************************************************** | 7 | **************************************************************** |
| 8 | ** | 8 | ** |
| 9 | ** WARNING: | ||
| 9 | ** The values in this file are exported to user space via | 10 | ** The values in this file are exported to user space via |
| 10 | ** the sysctl() binary interface. However this interface | 11 | ** the sysctl() binary interface. Do *NOT* change the |
| 11 | ** is unstable and deprecated and will be removed in the future. | 12 | ** numbering of any existing values here, and do not change |
| 12 | ** For a stable interface use /proc/sys. | 13 | ** any numbers within any one set of values. If you have to |
| 14 | ** have to redefine an existing interface, use a new number for it. | ||
| 15 | ** The kernel will then return -ENOTDIR to any application using | ||
| 16 | ** the old binary interface. | ||
| 17 | ** | ||
| 18 | ** For new interfaces unless you really need a binary number | ||
| 19 | ** please use CTL_UNNUMBERED. | ||
| 13 | ** | 20 | ** |
| 14 | **************************************************************** | 21 | **************************************************************** |
| 15 | **************************************************************** | 22 | **************************************************************** |
| @@ -48,6 +55,7 @@ struct __sysctl_args { | |||
| 48 | #ifdef __KERNEL__ | 55 | #ifdef __KERNEL__ |
| 49 | #define CTL_ANY -1 /* Matches any name */ | 56 | #define CTL_ANY -1 /* Matches any name */ |
| 50 | #define CTL_NONE 0 | 57 | #define CTL_NONE 0 |
| 58 | #define CTL_UNNUMBERED CTL_NONE /* sysctl without a binary number */ | ||
| 51 | #endif | 59 | #endif |
| 52 | 60 | ||
| 53 | enum | 61 | enum |
| @@ -961,8 +969,8 @@ extern ctl_handler sysctl_ms_jiffies; | |||
| 961 | /* | 969 | /* |
| 962 | * Register a set of sysctl names by calling register_sysctl_table | 970 | * Register a set of sysctl names by calling register_sysctl_table |
| 963 | * with an initialised array of ctl_table's. An entry with zero | 971 | * with an initialised array of ctl_table's. An entry with zero |
| 964 | * ctl_name terminates the table. table->de will be set up by the | 972 | * ctl_name and NULL procname terminates the table. table->de will be |
| 965 | * registration and need not be initialised in advance. | 973 | * set up by the registration and need not be initialised in advance. |
| 966 | * | 974 | * |
| 967 | * sysctl names can be mirrored automatically under /proc/sys. The | 975 | * sysctl names can be mirrored automatically under /proc/sys. The |
| 968 | * procname supplied controls /proc naming. | 976 | * procname supplied controls /proc naming. |
| @@ -973,7 +981,10 @@ extern ctl_handler sysctl_ms_jiffies; | |||
| 973 | * Leaf nodes in the sysctl tree will be represented by a single file | 981 | * Leaf nodes in the sysctl tree will be represented by a single file |
| 974 | * under /proc; non-leaf nodes will be represented by directories. A | 982 | * under /proc; non-leaf nodes will be represented by directories. A |
| 975 | * null procname disables /proc mirroring at this node. | 983 | * null procname disables /proc mirroring at this node. |
| 976 | * | 984 | * |
| 985 | * sysctl entries with a zero ctl_name will not be available through | ||
| 986 | * the binary sysctl interface. | ||
| 987 | * | ||
| 977 | * sysctl(2) can automatically manage read and write requests through | 988 | * sysctl(2) can automatically manage read and write requests through |
| 978 | * the sysctl table. The data and maxlen fields of the ctl_table | 989 | * the sysctl table. The data and maxlen fields of the ctl_table |
| 979 | * struct enable minimal validation of the values being written to be | 990 | * struct enable minimal validation of the values being written to be |
