since official kernel is still missing support for GPIO-driven interrupts (a feature I really *need*), I've decided to wire a quick and dirty one

http://dev.mrkva.eu/rpi/linux-gpio-irq.patch - patch for current kernel from https://github.com/raspberrypi/linux.git (commit 94fbbc4e3988075abad0d3b32842b82c590324fc)
http://dev.mrkva.eu/rpi/gpio-irq-demo.c - demo in C using sysfs interface. Usage is simple:
Code: Select all
echo $gpio > /sys/class/gpio/export
echo $trigger > /sys/class/gpio/gpio$gpio/edge
./gpio-irq-demo $gpio
Also, please note that there is no guarantee it would work for you or make your RPi explode.