modify input events before it gets to user space, not working.
Hello,
I'm learning Linux kernel development and am currently experimenting with writing a kernel module. I was wondering how I could process events using my kernel module before it gets to user-space, like cancelling a key press, modifying the pressed key... etc. I tried multiple approaches that failed and crashed the kernel, and here is the latest code I tried as of for now. Using the kernel even callback, I intercept any input event and am trying to cancel the KEY_A event in this code. I don't understand what's going wrong and why the kernel requests a hardware restart, as well as why it is not blocking the registration on the user-space. Code:
/** |
All times are GMT -5. The time now is 09:37 AM. |