Expand description
This module implements GPIO ABI v1 which was released in Linux v4.8.
This ABI version is deprecated.
ABI v2 adds features and overcomes a number of bugs and limitations present in v1. Use ABI v2 instead where possible.
Structs§
- Chip
Info - Information about a particular GPIO chip.
- Errno
- An error number returned by a kernel ioctl call.
- Event
Request - Information about a GPIO event request.
- Event
Request Flags - Additional configuration flags for event requests.
- Handle
Config - Updated configuration for an existing GPIO handle request.
- Handle
Request - Information about a GPIO line handle request.
- Handle
Request Flags - Configuration flags for requested lines.
- Line
Edge Event - Information about an edge event on a requested line.
- Line
Info - Information about a certain GPIO line.
- Line
Info Change Event - Information about a change in status of a GPIO line.
- Line
Info Flags - Flags indicating the configuration of a line.
- Line
Values - The logical values of the requested lines.
- Name
- A uAPI name string, common to ABI v1 and v2.
- Offsets
- A collection of line offsets.
- Under
Read Error - A failure to read sufficient bytes to construct an object.
- Validation
Error - A failure to validate a struct returned from a system call.
Enums§
- Error
- Errors returned by
gpiocdev_uapi
functions. - Line
Edge Event Kind - The trigger identifier for a
LineEdgeEvent
. - Line
Info Change Kind - The trigger identifier for a
LineInfoChangeEvent
.
Constants§
- NAME_
LEN_ MAX - The maximum number of bytes stored in a Name.
- NUM_
LINES_ MAX - The maximum number of lines that may be requested in a single request.
Functions§
- get_
chip_ info - Get the publicly available information for a chip.
- get_
line_ event - Request a line with edge detection enabled.
- get_
line_ handle - Request a line or set of lines for exclusive access.
- get_
line_ info - Get the publicly available information for a line.
- get_
line_ values - Read the values of requested lines.
- has_
event - Check if the file has an event available to read.
- read_
event - Read an event from a chip or request file descriptor.
- set_
line_ config - Update the configuration of an existing handle or event request.
- set_
line_ values - Set the values of requested lines.
- unwatch_
line_ info - Remove any watch on changes to the
LineInfo
for a line. - wait_
event - Wait for the file to have an event available to read.
- watch_
line_ info - Add a watch on changes to the
LineInfo
for a line.
Type Aliases§
- Offset
- An identifier for a line on a particular chip.
- Result
- The result returned by
gpiocdev_uapi
functions. - Validation
Result - Result returned by struct validators.