Interrupt counter driver

modulename: interrupt-cnt.ko

configname: CONFIG_INTERRUPT_CNT

Linux Kernel Configuration
└─>Device Drivers
└─>Counter support
└─>GPIO Support
└─>Interrupt counter driver
In linux kernel since version 5.2 (release Date: 2019-07-07)  
Select this option to enable interrupt counter driver. Any interrupt
source can be used by this driver as the event source.

To compile this driver as a module, choose M here: the
module will be called interrupt-cnt.

source code: