Re: [PATCH] Allow sysrq() via /proc/sys/kernel/magickey

From: Jeff Garzik
Date: Mon Aug 25 2003 - 20:08:03 EST


Linux Kernel Mailing List wrote:
ChangeSet 1.1114, 2003/08/25 16:42:57-03:00, m.c.p@xxxxxxxxxxxxxxx

[PATCH] Allow sysrq() via /proc/sys/kernel/magickey

Hi Marcelo,

sysrq() is a good thing to debug things, but unfortunately you need to have
physical access to the keyboard. My company for instance maintains tons of
remote machines and sometimes we need to do sysrq() too, but it's not
possible to do so the remote way.

Attached patch enables emulation of the Magic SysRq key (Alt-SysRq-key) via
the /proc interface. Just echo the desired character into the file and there
you go.

Patch from Randy Dunlap!


This patch is completely unneeded and redundant.

2.4.x already has /proc/sysrq-trigger for precisely this purpose.

See fs/proc/proc_misc.c for more details.

Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/