Closed adonespitogo closed 6 years ago
What type of computer is epoll being run on, a Raspberry Pi?
Which GPIO would you like to detect interrupts on? It looks like it might be a GPIO that has something to do with an SD card reader.
Im running it on Espressobin with Archlinux ARM kernel 4.15.7-1-ARCH
. The GPIO pin is GPIO2_5
(pin 11 on the rightmost)
Right now I'm polling the value from /sys/class/gpio/gpio451/value
at 10ms
interval to get around this.
These are the gpiochips numbering:
[root@portal alarm]# ls /sys/class/gpio
export gpio451 gpiochip446 gpiochip476 unexport
I'm not familiar with the Espressobin. You'll need to figure out to what extent it supports interrupts on GPIOs. In this case you'll also need to figure out why processing interrupts on GPIO451 appears to results in issues with mmc0. I'd suggest looking for help at the Espressobin forums. I'm fairly confident that this issues isn't related to the epoll module.
It's working now. This issue only happens randomly when I insert/unplug a USB flash drive.
I was able to listen to GPIO input, but after several seconds, I get the ff error:
Here is my code snippet: