Linux GPIO Character Device v2: Line Requests and Event Lifetimes
Request GPIO lines through the Linux character-device API, manage edge-event buffers and line state, and avoid confusing GPIO numbers with hardware identity.
tag
7 posts
Request GPIO lines through the Linux character-device API, manage edge-event buffers and line state, and avoid confusing GPIO numbers with hardware identity.
Model Linux I2C muxes as adapter trees and reason about channel selection, parent locking, nested topology, address collisions, and safe bus diagnostics.
Trace Linux NVMEM providers, named cells, layouts, and consumer APIs while preserving offsets, units, permissions, and irreversible-write safety.
Diagnose Linux pinctrl by mapping pads to functions, inspecting default and sleep states, and separating GPIO ownership from electrical muxing.
Debug Linux SPI protocol failures by tracing queued messages, chip-select continuity, clock mode, transfer limits, and userspace spidev semantics.
Build Linux USB gadgets through configfs with correct function composition, UDC lifecycle, descriptor ownership, host checks, and safe teardown.
Use usbipd-win to pass a serial adapter or debug probe into WSL, identify Linux devices reliably, and validate permissions and firmware workflows.