i am a kernelnewbie for my first device driver, i have to write a reset interrupt handler. My interrupt handler reboots the system when the user has pressed the reset button more than three seconds and reboot the application only if he has pressed the button less than three seconds. I have wrote the handler so that i can catch the interrupt. my problem is how can i get then interval time ,in which the button is pressed ?
thank for any help