Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47579
b: refs/heads/master
c: 78831ba
h: refs/heads/master
i:
  47577: 30694a7
  47575: 122293d
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Feb 11, 2007
1 parent 77f4ef2 commit e17b2da
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b653d081c17e26101980c858a9808740533b78b4
refs/heads/master: 78831ba68263d37382d61ea87d738975d992bd0d
44 changes: 22 additions & 22 deletions trunk/Documentation/sysrq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,33 +64,44 @@ On all - write a character to /proc/sysrq-trigger. e.g.:

* What are the 'command' keys?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'r' - Turns off keyboard raw mode and sets it to XLATE.

'k' - Secure Access Key (SAK) Kills all programs on the current virtual
console. NOTE: See important comments below in SAK section.

'b' - Will immediately reboot the system without syncing or unmounting
your disks.

'c' - Will perform a kexec reboot in order to take a crashdump.

'd' - Shows all locks that are held.

'o' - Will shut your system off (if configured and supported).
'e' - Send a SIGTERM to all processes, except for init.

's' - Will attempt to sync all mounted filesystems.
'f' - Will call oom_kill to kill a memory hog process.

'u' - Will attempt to remount all mounted filesystems read-only.
'g' - Used by kgdb on ppc platforms.

'p' - Will dump the current registers and flags to your console.
'h' - Will display help (actually any other key than those listed
above will display help. but 'h' is easy to remember :-)

't' - Will dump a list of current tasks and their information to your
console.
'i' - Send a SIGKILL to all processes, except for init.

'k' - Secure Access Key (SAK) Kills all programs on the current virtual
console. NOTE: See important comments below in SAK section.

'm' - Will dump current memory info to your console.

'n' - Used to make RT tasks nice-able

'o' - Will shut your system off (if configured and supported).

'p' - Will dump the current registers and flags to your console.

'r' - Turns off keyboard raw mode and sets it to XLATE.

's' - Will attempt to sync all mounted filesystems.

't' - Will dump a list of current tasks and their information to your
console.

'u' - Will attempt to remount all mounted filesystems read-only.

'v' - Dumps Voyager SMP processor info to your console.

'w' - Dumps tasks that are in uninterruptable (blocked) state.
Expand All @@ -102,17 +113,6 @@ On all - write a character to /proc/sysrq-trigger. e.g.:
it so that only emergency messages like PANICs or OOPSes would
make it to your console.)

'f' - Will call oom_kill to kill a memory hog process.

'e' - Send a SIGTERM to all processes, except for init.

'g' - Used by kgdb on ppc platforms.

'i' - Send a SIGKILL to all processes, except for init.

'h' - Will display help (actually any other key than those listed
above will display help. but 'h' is easy to remember :-)

* Okay, so what can I use them for?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Well, un'R'aw is very handy when your X server or a svgalib program crashes.
Expand Down

0 comments on commit e17b2da

Please sign in to comment.