gpiotools_sets(9)
β¨ 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 be0(low)or1(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 π¦
- Kernel file
./tools/gpio/gpio-utils.c - 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_set(9)
mwah π signed off from ./tools/gpio, October 2026, for gpiotools_sets(9). periodt. π§
π¦ 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