gpiotools_sets(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, meet gpiotools_sets(9), straight outta the Kernel API Manual, and its whole job is literally Set values to specific lines. πŸŽ€ no cap, that's the vibe.

πŸ’… SYNOPSIS πŸ’…

here's the exact summoning spell, character for character:

int gpiotools_sets (const char *device_name , unsigned int *lines ,
       unsigned int num_lines , unsigned int *values );

🫢 ARGUMENTS 🫢

  • device_name β€” the name of the gpiochip, but without the prefix "/dev/", like "gpiochip0". yep, leave that prefix at home. πŸ’…
  • lines β€” an array of desired lines, specified by offset index for the associated GPIO device. the lines bestie, in array form. ✨
  • num_lines β€” the number of lines to request. count 'em, queen. πŸ‘‘
  • values β€” the array of values set to gpiochip; it must be 0(low) or 1(high). no secret third option, okay? 😭

🌈 RETURN 🌈

  • On success: return 0. slay. βœ…
  • On failure: return the errno. not the cute kind of plot twist, but noted. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ signed off from ./tools/gpio, October 2026, for gpiotools_sets(9). periodt. 🧚

πŸ“¦ where this page comes from