diff options
Diffstat (limited to 'include/linux/sysctl.h')
-rw-r--r-- | include/linux/sysctl.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 82c32b89932d..7c4aabc04673 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -1005,8 +1005,8 @@ extern ctl_handler sysctl_ms_jiffies; | |||
1005 | 1005 | ||
1006 | /* | 1006 | /* |
1007 | * Register a set of sysctl names by calling register_sysctl_table | 1007 | * Register a set of sysctl names by calling register_sysctl_table |
1008 | * with an initialised array of struct ctl_table's. An entry with zero | 1008 | * with an initialised array of struct ctl_table's. An entry with |
1009 | * ctl_name and NULL procname terminates the table. table->de will be | 1009 | * NULL procname terminates the table. table->de will be |
1010 | * set up by the registration and need not be initialised in advance. | 1010 | * set up by the registration and need not be initialised in advance. |
1011 | * | 1011 | * |
1012 | * sysctl names can be mirrored automatically under /proc/sys. The | 1012 | * sysctl names can be mirrored automatically under /proc/sys. The |
@@ -1019,24 +1019,11 @@ extern ctl_handler sysctl_ms_jiffies; | |||
1019 | * under /proc; non-leaf nodes will be represented by directories. A | 1019 | * under /proc; non-leaf nodes will be represented by directories. A |
1020 | * null procname disables /proc mirroring at this node. | 1020 | * null procname disables /proc mirroring at this node. |
1021 | * | 1021 | * |
1022 | * sysctl entries with a zero ctl_name will not be available through | ||
1023 | * the binary sysctl interface. | ||
1024 | * | ||
1025 | * sysctl(2) can automatically manage read and write requests through | 1022 | * sysctl(2) can automatically manage read and write requests through |
1026 | * the sysctl table. The data and maxlen fields of the ctl_table | 1023 | * the sysctl table. The data and maxlen fields of the ctl_table |
1027 | * struct enable minimal validation of the values being written to be | 1024 | * struct enable minimal validation of the values being written to be |
1028 | * performed, and the mode field allows minimal authentication. | 1025 | * performed, and the mode field allows minimal authentication. |
1029 | * | 1026 | * |
1030 | * More sophisticated management can be enabled by the provision of a | ||
1031 | * strategy routine with the table entry. This will be called before | ||
1032 | * any automatic read or write of the data is performed. | ||
1033 | * | ||
1034 | * The strategy routine may return: | ||
1035 | * <0: Error occurred (error is passed to user process) | ||
1036 | * 0: OK - proceed with automatic read or write. | ||
1037 | * >0: OK - read or write has been done by the strategy routine, so | ||
1038 | * return immediately. | ||
1039 | * | ||
1040 | * There must be a proc_handler routine for any terminal nodes | 1027 | * There must be a proc_handler routine for any terminal nodes |
1041 | * mirrored under /proc/sys (non-terminals are handled by a built-in | 1028 | * mirrored under /proc/sys (non-terminals are handled by a built-in |
1042 | * directory handler). Several default handlers are available to | 1029 | * directory handler). Several default handlers are available to |