gpiotools_set(9)
π 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, like2. β¨valueβ the value of the gpio, and it must be0(low)or1(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:
- Operation of
gpio(9) gpiotools_request_line(9)gpiotools_set_values(9)gpiotools_get_values(9)gpiotools_release_line(9)gpiotools_get(9)gpiotools_gets(9)gpiotools_sets(9)
from the ./tools/gpio source, dated October 2026, this is gpiotools_set(9) signing off πβ¨π
π¦ 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