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)
Sat, May 16, 10:31 AM
Unknown Object (File)
Fri, May 15, 10:50 AM
Unknown Object (File)
Thu, May 14, 3:32 PM
Unknown Object (File)
Thu, May 14, 8:19 AM
Unknown Object (File)
Thu, May 14, 4:50 AM
Unknown Object (File)
Mon, May 11, 3:12 AM
Unknown Object (File)
Thu, Apr 30, 9:15 PM
Unknown Object (File)
Sat, Apr 25, 1:49 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