Key board interrupt handler



Hello everyone,

I am newbie to linux. I want to design a key board handler.
Whenever a key in key board is pressed, the process should call a user defined function and should identify what key is pressed.Is there any method to do this. Is reques_irq helpful?
Can someone provide me a sample code for this?

Thanks in advance:)
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online