dragonboard

how to use poll(2) or select(2) service call to watch a pseudo file for changes with Kotlin

这一生的挚爱 提交于 2021-01-07 02:42:10
问题 I am working with a DragonBoard 410C using Android 5.1 and Kotlin to experiment with the GPIO pins on the 40 pin low power connector. The library I'm using is using the sysfs interface for interacting with the GPIO pins which requires opening various pseudo files in /sys/class/gpio/ directory tree and reading and writing values to those files, see accessing GPIO low power connector on DragonBoard 410C running Android My understanding is that I can provision a GPIO pin as Input and Edge