Created attachment 219983 [details] simple kernel module for catching Interrupts and forward to a kevent Tested on Beaglebone Black Button connected on P8_8 and P8_10 (change devicetree if you want any other pins) (Random wiring diagram: https://learn.adafruit.com/connecting-a-push-button-to-beaglebone-black/wiring ) - Compile the devicetree and place the dtbo file in /boot/dtb/overlays/BB-GPIOIITK.dtbo. - Add to /boot/loader.conf fdt_overlays="BB-GPIOIITK.dtbo" - Build kernel module (make) and load it kldload gpioiitk.ko - Build test application (cc test.c)