Skip to content
Discussion options

You must be logged in to vote

After some distributions/build systems made the hard switch from libgpiod v1.6.x to v2.x I'm challenged to adapt my applications now. Previously I used gpiod_line_find() in C and gpiod::find_line() in C++ and proceeded from there. This was especially handy, because some of that application code runs on different platforms and I just don't know in advance which chip and line a certain GPIO is on, but using distinct line-names in .dts allowed for easy and reproducible selecting the correct line.

Now with API v2 those functions are gone, and all I can find in the sources are some examples like examples/find_line_by_name.c and bindings/cxx/examples/find_line_by_name.cpp which essentially do …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@LeSpocky
Comment options

@brgl
Comment options

brgl Mar 10, 2026
Maintainer

@brgl
Comment options

brgl May 13, 2026
Maintainer

Answer selected by LeSpocky
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants