summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 1c1ad1e14f21..43186ccfa139 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -188,17 +188,17 @@ extern int no_unaligned_warning;
188 * enum sysctl_writes_mode - supported sysctl write modes 188 * enum sysctl_writes_mode - supported sysctl write modes
189 * 189 *
190 * @SYSCTL_WRITES_LEGACY: each write syscall must fully contain the sysctl value 190 * @SYSCTL_WRITES_LEGACY: each write syscall must fully contain the sysctl value
191 * to be written, and multiple writes on the same sysctl file descriptor 191 * to be written, and multiple writes on the same sysctl file descriptor
192 * will rewrite the sysctl value, regardless of file position. No warning 192 * will rewrite the sysctl value, regardless of file position. No warning
193 * is issued when the initial position is not 0. 193 * is issued when the initial position is not 0.
194 * @SYSCTL_WRITES_WARN: same as above but warn when the initial file position is 194 * @SYSCTL_WRITES_WARN: same as above but warn when the initial file position is
195 * not 0. 195 * not 0.
196 * @SYSCTL_WRITES_STRICT: writes to numeric sysctl entries must always be at 196 * @SYSCTL_WRITES_STRICT: writes to numeric sysctl entries must always be at
197 * file position 0 and the value must be fully contained in the buffer 197 * file position 0 and the value must be fully contained in the buffer
198 * sent to the write syscall. If dealing with strings respect the file 198 * sent to the write syscall. If dealing with strings respect the file
199 * position, but restrict this to the max length of the buffer, anything 199 * position, but restrict this to the max length of the buffer, anything
200 * passed the max lenght will be ignored. Multiple writes will append 200 * passed the max length will be ignored. Multiple writes will append
201 * to the buffer. 201 * to the buffer.
202 * 202 *
203 * These write modes control how current file position affects the behavior of 203 * These write modes control how current file position affects the behavior of
204 * updating sysctl values through the proc interface on each write. 204 * updating sysctl values through the proc interface on each write.