Page MenuHomeFreeBSD

gpio: add GPIO_GET_PIN_LIST
ClosedPublic

Authored by vexeduxr on Aug 26 2025, 7:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 20, 6:46 PM
Unknown Object (File)
Sun, Feb 8, 3:03 PM
Unknown Object (File)
Sat, Feb 7, 6:46 PM
Unknown Object (File)
Jan 31 2026, 11:23 AM
Unknown Object (File)
Jan 27 2026, 5:15 AM
Unknown Object (File)
Jan 16 2026, 12:17 AM
Unknown Object (File)
Dec 10 2025, 8:22 PM
Unknown Object (File)
Dec 7 2025, 12:55 PM
Subscribers

Details

Summary

While most GPIO controllers provide pins from 0 .. N in a sequential
manner, not all controllers start with pin 0, and not all controllers
order their pins sequentially. Allow callers to get a pin list from the
controller. The default behaviour is to fill pin_list with pins 0 to
GPIO_PIN_MAX().

Suggested by: mmel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable