gpiotools_get_values(9)
π gpiotools_get_values π
okay so bestie, welcome to the gpiotools_get_values(9) page β that's section 9 of the Kernel API Manual, iykyk π. this is the little function that goes and gets the value of your gpio(s), and honestly? she's giving main character energy in the gpio utils lineup π
β¨ NAME β¨
gpiotools_get_values β literally just: Get the value of gpio(s). that's the whole vibe. no cap π«Ά
πΈ SYNOPSIS πΈ
int gpiotools_get_values (const int fd , struct gpio_v2_line_values *values );
look at her. two args. clean. iconic. β¨
π¦ ARGUMENTS π¦
fdβ the fd that got handed back to you bygpiotools_request_line. like, you literally can't do this without her first, she's the whole entry point, no cap πvaluesβ the array of values that gets got from the hardware. that's where your readings land, bestie π
π RETURN π
- On success β returns
0β¨ (slay) - On failure β returns the
errnoπ (so likeβ¦ check her, fr fr)
π SEE ALSO π
- Kernel file
./tools/gpio/gpio-utils.cβ the source, go read it if you're nosy (respectfully) π - Operation of gpio(9)
gpiotools_request_line(9)gpiotools_set_values(9)gpiotools_release_line(9)gpiotools_get(9)gpiotools_gets(9)gpiotools_set(9)gpiotools_sets(9)
the whole friend group, honestly π«Άπ
anyway that's the page!! this one lives under ./tools/gpio and the version is October 2026 β periodt, that's the whole sign-off, mwah πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms