summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2013-10-06 19:48:46 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-16 16:01:44 -0400
commite8b5cbb041130ef297c90f8af2d3d45dfb9e6d15 (patch)
treeefe6b006590c85da117c63f41a501ceb29f33297
parent190c6cc32843844722a9897fac1929d57517db14 (diff)
sysrq: Document hexadecimal values for kernel.sysrq bitmask
It makes more sense to enter a bitmask in hexadecimal rather than decimal. Sadly we can't make it read back as hexadecimal. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Documentation/sysrq.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/Documentation/sysrq.txt b/Documentation/sysrq.txt
index 8cb4d7842a5f..1c0471dc70fe 100644
--- a/Documentation/sysrq.txt
+++ b/Documentation/sysrq.txt
@@ -20,18 +20,21 @@ in /proc/sys/kernel/sysrq:
20 1 - enable all functions of sysrq 20 1 - enable all functions of sysrq
21 >1 - bitmask of allowed sysrq functions (see below for detailed function 21 >1 - bitmask of allowed sysrq functions (see below for detailed function
22 description): 22 description):
23 2 - enable control of console logging level 23 2 = 0x2 - enable control of console logging level
24 4 - enable control of keyboard (SAK, unraw) 24 4 = 0x4 - enable control of keyboard (SAK, unraw)
25 8 - enable debugging dumps of processes etc. 25 8 = 0x8 - enable debugging dumps of processes etc.
26 16 - enable sync command 26 16 = 0x10 - enable sync command
27 32 - enable remount read-only 27 32 = 0x20 - enable remount read-only
28 64 - enable signalling of processes (term, kill, oom-kill) 28 64 = 0x40 - enable signalling of processes (term, kill, oom-kill)
29 128 - allow reboot/poweroff 29 128 = 0x80 - allow reboot/poweroff
30 256 - allow nicing of all RT tasks 30 256 = 0x100 - allow nicing of all RT tasks
31 31
32You can set the value in the file by the following command: 32You can set the value in the file by the following command:
33 echo "number" >/proc/sys/kernel/sysrq 33 echo "number" >/proc/sys/kernel/sysrq
34 34
35The number may be written either as decimal or as hexadecimal with the
360x prefix.
37
35Note that the value of /proc/sys/kernel/sysrq influences only the invocation 38Note that the value of /proc/sys/kernel/sysrq influences only the invocation
36via a keyboard. Invocation of any operation via /proc/sysrq-trigger is always 39via a keyboard. Invocation of any operation via /proc/sysrq-trigger is always
37allowed (by a user with admin privileges). 40allowed (by a user with admin privileges).