User space interface for GPIO interrupts

Maverick Kuo maverick.kuo at gmail.com
Mon Jun 3 06:56:24 UTC 2019


Hi,

i am running  12.0-STABLE r348448  arm64 on raspberry pi3 b+.

Look at the kernel and it seems that all the functions related to gpio
interrupt are available.

System startup process
Bcm_gpio_intr_attach =>>
Bus_setup_intr
?? bcm_gpio_intr_bank[0,1]
?? bcm_gpio_intr_internal

It seems that BCM_GPIO_GPEDS (Event Status) will be read in the
bcm_gpio_intr_internal function but it is not executed there.

am I missed that part??

Let users use kqueue/kevent to monitor gpio interrupt to reduce cpu load.

Regards,
Chris


More information about the freebsd-arm mailing list