line status change events
GPIO event types
GPIO event types
Eventrequest flags
Eventrequest flags
Maximum number of requested handles
.
Linerequest flags
Linerequest flags
.
Informational flags
Informational flags
.
Information about a certain GPIO chip. ioctl GPIO_GET_CHIPINFO_IOCTL
The actual event being pushed to userspace
Information about a GPIO event request
Configuration for a GPIO handle request Note: only in kernel newer than early 2020
Information of values on a GPIO handle
Information about a GPIO handle request
Information about a certain GPIO line
Information about a change in status of a GPIO line
GPIOHANDLE_REQUEST_BIAS_PULL_UP and friends were added to the kernel in early 2020, so bleeding edge feature that is unlikely to work if you aren't that new too. My rpis do NOT support it. (the python library sets similar values tho by poking memory registers. I'm not gonna do that here, you can also solve it with electric circuit design (6k-ish ohm pull up and/or pull down resistor) or just knowing your own setup... so meh.)
GPL-2.0 WITH Linux-syscall-note because it includes copy/pasted Linux kernel header code.
PRERELEASE EXPERIMENTAL MODULE / SUBJECT TO CHANGE WITHOUT WARNING / LIKELY TO CONTAIN BUGS
Wrapper for gpio use on Linux. It uses the new kernel interface directly, and thus requires a Linux kernel version newer than 4.9. It also requires a Linux kernel newer than 4.9 (apt upgrade your raspian install if you don't already have that).
Note that the kernel documentation is very clear: do NOT use this for anything you plan to distribute to others. It is really just for tinkering, not production. And if the kernel people say that, I say it like 1000x more.