diff options
Diffstat (limited to 'include/linux/sysctl.h')
| -rw-r--r-- | include/linux/sysctl.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 1b24bd45e080..94316a98e0d0 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 |
| @@ -418,6 +426,8 @@ enum | |||
| 418 | NET_CIPSOV4_CACHE_BUCKET_SIZE=119, | 426 | NET_CIPSOV4_CACHE_BUCKET_SIZE=119, |
| 419 | NET_CIPSOV4_RBM_OPTFMT=120, | 427 | NET_CIPSOV4_RBM_OPTFMT=120, |
| 420 | NET_CIPSOV4_RBM_STRICTVALID=121, | 428 | NET_CIPSOV4_RBM_STRICTVALID=121, |
| 429 | NET_TCP_AVAIL_CONG_CONTROL=122, | ||
| 430 | NET_TCP_ALLOWED_CONG_CONTROL=123, | ||
| 421 | }; | 431 | }; |
| 422 | 432 | ||
| 423 | enum { | 433 | enum { |
| @@ -596,16 +606,6 @@ enum { | |||
| 596 | NET_DCCP_DEFAULT=1, | 606 | NET_DCCP_DEFAULT=1, |
| 597 | }; | 607 | }; |
| 598 | 608 | ||
| 599 | /* /proc/sys/net/dccp/default */ | ||
| 600 | enum { | ||
| 601 | NET_DCCP_DEFAULT_SEQ_WINDOW = 1, | ||
| 602 | NET_DCCP_DEFAULT_RX_CCID = 2, | ||
| 603 | NET_DCCP_DEFAULT_TX_CCID = 3, | ||
| 604 | NET_DCCP_DEFAULT_ACK_RATIO = 4, | ||
| 605 | NET_DCCP_DEFAULT_SEND_ACKVEC = 5, | ||
| 606 | NET_DCCP_DEFAULT_SEND_NDP = 6, | ||
| 607 | }; | ||
| 608 | |||
| 609 | /* /proc/sys/net/ipx */ | 609 | /* /proc/sys/net/ipx */ |
| 610 | enum { | 610 | enum { |
| 611 | NET_IPX_PPROP_BROADCASTING=1, | 611 | NET_IPX_PPROP_BROADCASTING=1, |
| @@ -961,8 +961,8 @@ extern ctl_handler sysctl_ms_jiffies; | |||
| 961 | /* | 961 | /* |
| 962 | * Register a set of sysctl names by calling register_sysctl_table | 962 | * Register a set of sysctl names by calling register_sysctl_table |
| 963 | * with an initialised array of ctl_table's. An entry with zero | 963 | * 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 | 964 | * ctl_name and NULL procname terminates the table. table->de will be |
| 965 | * registration and need not be initialised in advance. | 965 | * set up by the registration and need not be initialised in advance. |
| 966 | * | 966 | * |
| 967 | * sysctl names can be mirrored automatically under /proc/sys. The | 967 | * sysctl names can be mirrored automatically under /proc/sys. The |
| 968 | * procname supplied controls /proc naming. | 968 | * procname supplied controls /proc naming. |
| @@ -973,7 +973,10 @@ extern ctl_handler sysctl_ms_jiffies; | |||
| 973 | * Leaf nodes in the sysctl tree will be represented by a single file | 973 | * 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 | 974 | * under /proc; non-leaf nodes will be represented by directories. A |
| 975 | * null procname disables /proc mirroring at this node. | 975 | * null procname disables /proc mirroring at this node. |
| 976 | * | 976 | * |
| 977 | * sysctl entries with a zero ctl_name will not be available through | ||
| 978 | * the binary sysctl interface. | ||
| 979 | * | ||
| 977 | * sysctl(2) can automatically manage read and write requests through | 980 | * sysctl(2) can automatically manage read and write requests through |
| 978 | * the sysctl table. The data and maxlen fields of the ctl_table | 981 | * the sysctl table. The data and maxlen fields of the ctl_table |
| 979 | * struct enable minimal validation of the values being written to be | 982 | * struct enable minimal validation of the values being written to be |
