Re: sysrq on serial consoles [was The Deadly `ping -f']

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Tue, 27 Apr 1999 12:48:53 +0200


Hello!

> The original question was how to enter sysrq from a serial console.
> AFAICT, the only way of entering alt-sysrq is directly from a PC
> keyboard, I can see no way of doing it from a serial console. Proc
> handle_sysrq is only called from handle_scancode in keyboard.c. Serial
> consoles do not have scancodes.
>
> So a question for the serial experts. How do you enter alt-sysrq on a
> serial console? Expecially if that console could be a dumb VT100 or an
> emulator running on Linux or even another OS entirely?

Some time ago, I wrote a patch for SysRq over serial console which
used BREAK as a SysRq key. Unfortunately, Linus has rejected it because
of the feature freeze, but I can dig it out and port to 2.2.x.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"REALITY.SYS corrupted - reboot Universe (Y/N)?"

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