gpiotools_gets(9)
π gpiotools_gets(9) π
okay bestie, welcome to the gpiotools_gets(9) page from the Kernel API Manual π this one is all about grabbing values from specific lines, and itβs lowkey iconic.
πΈ NAME πΈ
gpiotools_gets β get values from specific lines. periodt. β¨
β¨ SYNOPSIS β¨
int gpiotools_gets (const char *device_name , unsigned int *lines ,
unsigned int num_lines , unsigned int *values );
π¦ ARGUMENTS π¦
device_nameβ the name of the gpiochip, without the prefix"/dev/", like"gpiochip0". no slashies, bestie π«linesβ an array of the desired lines, specified by offset index for the associated GPIO device.num_linesβ the number of lines to request. count βem πvaluesβ the array of values get from gpiochip.
π RETURN π
On success, return 0; on failure, return the errno. thatβs the whole vibe check π
π 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_set(9)gpiotools_sets(9)
mwah π this cutie comes from source/version ./tools/gpio, dated October 2026. go forth and get those values, bestie π«Άβ¨
π¦ 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