Re: [PATCH v10] /proc/sysrq-trigger: accept multiple keys at once

Jiri Slaby
2023-11-20T11:32:49Z

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@gmail.com>

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

thanks,
--
js
suse labs