gpiotools_get_values(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 by gpiotools_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 🌈

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