Linux Device Drivers, Chapter 10

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

  1. 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?

  2. What function do you use to register an interrupt handler?

  3. (T/F) The interrupt handler should be registered before interrupts are enabled on the device.

  4. How can you view how many interrupts have occurred on a device? Do you need root privileges to do so?

  5. (T/F) Your interrupt handler can have any number of arguments and types.

  6. What is the purpose of the dev_id argument?

  7. What should your interrupt handler return?