count interruptions generated by the mouse
Hi everyone,
I have to write a driver that counts the number of interruption generated by the mouse through the "interrupt handler".
The driver must behave as follows:
If i enter the following command line: echo "s">> /dev/inter
The counter must start.
If i enter the following command line: echo "e">> /dev/inter
The counter must be stopped.
If i enter the following command line: cat /dev/inter
The total of interruptions made by the mouse must appear on the screen. Ex: 45;
As a beginner in C and especially in linux interruption, I will need some help to develop such driver.
Thank you
|