Reading
Intro, Installing an Interrupt Handler (skip Autodetecting the IRQ Number) (258-264, 268-269), Implementing a Handler (stop at ‘Top/Bottom Halves’) (269-275)
Study Questions
-
What happens if an interrupt arrives on an interrupt line, but you haven’t registered an interrupt service routine (interrupt handler) with Linux for this interrupt line?
-
What function do you use to register an interrupt handler?
-
(T/F) The interrupt handler should be registered before interrupts are enabled on the device.
-
How can you view how many interrupts have occurred on a device? Do you need root privileges to do so?
-
(T/F) Your interrupt handler can have any number of arguments and types.
-
What is the purpose of the dev_id argument?
-
What should your interrupt handler return?