[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1974a5bb-cd08-4e8c-b1f5-ea0a4aaf8247@kernel.org>
Date: Mon, 20 Nov 2023 12:32:38 +0100
From: Jiri Slaby <jirislaby@...nel.org>
To: Tomas Mudrunka <tomas.mudrunka@...il.com>
Cc: corbet@....net, gregkh@...uxfoundation.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org, rdunlap@...radead.org
Subject: Re: [PATCH v10] /proc/sysrq-trigger: accept multiple keys at once
On 20. 11. 23, 12:14, Tomas Mudrunka wrote:
> This way we can do:
> `echo _reisub > /proc/sysrq-trigger`
> Instead of:
> `for i in r e i s u b; do echo "$i" > /proc/sysrq-trigger; done;`
>
> This can be very useful when trying to execute sysrq combo remotely
> or from userspace. When sending keys in multiple separate writes,
> userspace (eg. bash or ssh) can be killed before whole combo is completed.
> Therefore putting all keys in single write is more robust approach.
>
> Signed-off-by: Tomas Mudrunka <tomas.mudrunka@...il.com>
Reviewed-by: Jiri Slaby <jirislaby@...nel.org>
thanks,
--
js
suse labs
Powered by blists - more mailing lists