How capture a keyboard input in Linux Kernel

时间:2016-11-09 06:52:59

标签: linux linux-kernel kernel

I compiled linux kernel and I added a message, to boot process in Main.c file:

pr_alert("press any key to continue..");

Now I need to detect when a keyboard key is pressed to continue with boot process, I know it should not be done but it's required for a homework. Please help. Thanks in advance

1 个答案:

答案 0 :(得分:0)

'等待按键'调试只是不是内核调试的支持方法。如果需要停止并分析内核数据,请使用kgdb。