This is just a basic linux device driver. This will explain about the Interrupts in the linux device driver.
Please refer this URL for the complete tutorial of this source code. https://embetronicx.com/tutorials/linux/device-drivers/linux-device-driver-tutorial-part-13-interrupt-example-program-in-linux-kernel/