Commit e8b5cbb041130ef297c90f8af2d3d45dfb9e6d15
Committed by
Greg Kroah-Hartman
1 parent
190c6cc328
Exists in
master
and in
16 other branches
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>
Showing 1 changed file with 11 additions and 8 deletions Side-by-side Diff
Documentation/sysrq.txt
... | ... | @@ -20,17 +20,20 @@ |
20 | 20 | 1 - enable all functions of sysrq |
21 | 21 | >1 - bitmask of allowed sysrq functions (see below for detailed function |
22 | 22 | description): |
23 | - 2 - enable control of console logging level | |
24 | - 4 - enable control of keyboard (SAK, unraw) | |
25 | - 8 - enable debugging dumps of processes etc. | |
26 | - 16 - enable sync command | |
27 | - 32 - enable remount read-only | |
28 | - 64 - enable signalling of processes (term, kill, oom-kill) | |
29 | - 128 - allow reboot/poweroff | |
30 | - 256 - allow nicing of all RT tasks | |
23 | + 2 = 0x2 - enable control of console logging level | |
24 | + 4 = 0x4 - enable control of keyboard (SAK, unraw) | |
25 | + 8 = 0x8 - enable debugging dumps of processes etc. | |
26 | + 16 = 0x10 - enable sync command | |
27 | + 32 = 0x20 - enable remount read-only | |
28 | + 64 = 0x40 - enable signalling of processes (term, kill, oom-kill) | |
29 | + 128 = 0x80 - allow reboot/poweroff | |
30 | + 256 = 0x100 - allow nicing of all RT tasks | |
31 | 31 | |
32 | 32 | You can set the value in the file by the following command: |
33 | 33 | echo "number" >/proc/sys/kernel/sysrq |
34 | + | |
35 | +The number may be written either as decimal or as hexadecimal with the | |
36 | +0x prefix. | |
34 | 37 | |
35 | 38 | Note that the value of /proc/sys/kernel/sysrq influences only the invocation |
36 | 39 | via a keyboard. Invocation of any operation via /proc/sysrq-trigger is always |