The GPIO chip's device file.
The line's number on its chip.
Hands the line back to the kernel. Calls after this throw.
Drives the line to a level. Throws when the kernel refuses the write, which an input line does, or the line is closed.
Reads the level on the line now. Throws when the kernel refuses the read, or the line is closed.
StaticopenStaticopen
A GPIO line opened on a Linux board, through the kernel's GPIO character device.
It drives and reads a line synchronously, so it goes straight under a
Switchor aContact. A line is held by one process at a time;closehands it back.