gpiotools_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gpiotools_set(9) β€” Kernel API Manual πŸ’…

✨ NAME ✨

gpiotools_set β€” literally sets a value to a specific line. That's the whole vibe, bestie: set value to specific line. πŸŽ€

⚑ SYNOPSIS ⚑

int gpiotools_set (const char *device_name , unsigned int line ,
       unsigned int value );

Okay so that's the exact signature, no cap. 🫢

🌸 ARGUMENTS 🌸

  • device_name β€” the name of the gpiochip, without the prefix /dev/, like "gpiochip0". πŸ™ˆ
  • line β€” the number of the line, like 2. ✨
  • value β€” the value of the gpio, and it must be 0(low) or 1(high). πŸ’€ That's not a maybe, bestie.

🫢 RETURN 🫢

On success, return 0; on failure, return the errno. Periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./tools/gpio/gpio-utils.c. Also lowkey check out:


from the ./tools/gpio source, dated October 2026, this is gpiotools_set(9) signing off πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from