mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
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>
This commit is contained in:
parent
190c6cc328
commit
e8b5cbb041
@ -20,18 +20,21 @@ in /proc/sys/kernel/sysrq:
|
|||||||
1 - enable all functions of sysrq
|
1 - enable all functions of sysrq
|
||||||
>1 - bitmask of allowed sysrq functions (see below for detailed function
|
>1 - bitmask of allowed sysrq functions (see below for detailed function
|
||||||
description):
|
description):
|
||||||
2 - enable control of console logging level
|
2 = 0x2 - enable control of console logging level
|
||||||
4 - enable control of keyboard (SAK, unraw)
|
4 = 0x4 - enable control of keyboard (SAK, unraw)
|
||||||
8 - enable debugging dumps of processes etc.
|
8 = 0x8 - enable debugging dumps of processes etc.
|
||||||
16 - enable sync command
|
16 = 0x10 - enable sync command
|
||||||
32 - enable remount read-only
|
32 = 0x20 - enable remount read-only
|
||||||
64 - enable signalling of processes (term, kill, oom-kill)
|
64 = 0x40 - enable signalling of processes (term, kill, oom-kill)
|
||||||
128 - allow reboot/poweroff
|
128 = 0x80 - allow reboot/poweroff
|
||||||
256 - allow nicing of all RT tasks
|
256 = 0x100 - allow nicing of all RT tasks
|
||||||
|
|
||||||
You can set the value in the file by the following command:
|
You can set the value in the file by the following command:
|
||||||
echo "number" >/proc/sys/kernel/sysrq
|
echo "number" >/proc/sys/kernel/sysrq
|
||||||
|
|
||||||
|
The number may be written either as decimal or as hexadecimal with the
|
||||||
|
0x prefix.
|
||||||
|
|
||||||
Note that the value of /proc/sys/kernel/sysrq influences only the invocation
|
Note that the value of /proc/sys/kernel/sysrq influences only the invocation
|
||||||
via a keyboard. Invocation of any operation via /proc/sysrq-trigger is always
|
via a keyboard. Invocation of any operation via /proc/sysrq-trigger is always
|
||||||
allowed (by a user with admin privileges).
|
allowed (by a user with admin privileges).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user