I have read online that you cant register interrupts in user space. The way to go about doing something similar is to - 1) have the Linux kernel module / driver send an asynchronous event to the user space on the interrupt detection 2) having a thread in user space that polls on the device node for that event.
I have written a kernel module that registers events on the rising edge of GPIO pin and I now want to convey this to user space.
Can anyone show me how to - 1) send an event from kernel space to user space 2) make a thread in user space to poll for that event
Thanks!