aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysctl.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-04-03 06:18:02 -0400
committerEric W. Biederman <ebiederm@xmission.com>2009-11-11 03:53:43 -0500
commit2315ffa0a9f789c588c7139effa7404a387d8685 (patch)
tree756d32f0ab8b67e9d45a1e4399c9ee6080909e70 /include/linux/sysctl.h
parent6fce56ec91b502ba6fcbbc2a6d25a8c2c7f77934 (diff)
sysctl: Don't look at ctl_name and strategy in the generic code
The ctl_name and strategy fields are unused, now that sys_sysctl is a compatibility wrapper around /proc/sys. No longer looking at them in the generic code is effectively what we are doing now and provides the guarantee that during further cleanups we can just remove references to those fields and everything will work ok. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/sysctl.h')
-rw-r--r--include/linux/sysctl.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 82c32b89932..7c4aabc0467 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