Thread (24 messages) 24 messages, 6 authors, 2020-07-09

Re: [PATCH 6/6] tty/sysrq: Add configurable handler to execute a compound action

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2020-05-11 16:29:45
Also in: linux-devicetree

On Mon, May 11, 2020 at 03:59:18PM +0200, Andrzej Pietrasiewicz wrote:
Some userland might want to execute e.g. 'w' (show blocked tasks), followed
by 's' (sync), followed by 1000 ms delay and then followed by 'c' (crash)
upon a single magic SysRq. Or one might want to execute the famous "Raising
Elephants Is So Utterly Boring" action. This patch adds a configurable
handler, triggered with 'C', for this exact purpose. The user specifies the
composition of the compound action using syntax similar to getopt, where
each letter corresponds to an individual action and a colon followed by a
number corresponds to a delay of that many milliseconds, e.g.:

ws:1000c

or

r:100eis:1000ub
Cute, but why?  Who needs/wants this type of thing?

And again, no documentation :(

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help