OPERATION OF GPIO(9)
π Operation of gpio β Kernel API Manual edition β¨
Okay so this is Operation of gpio(9) from the Kernel API Manual, and it is literally here to provide the api of gpiochip for the chardev interface π«Ά. There are two types of api, bestie, and they are not giving the same energy.
π Type one: the ioctl-matching one
The first one provides the same function as each ioctl, including request and release for lines of gpio, plus read/write the value of gpio. If the user wants to do lots of read and write of lines of gpio, the user should use this type of api. Periodt π
.
π¦ Type two: the easy one
The second one provides the easy-to-use api for the user. Each of the following api will request gpio lines, do the operation, and then release these lines. Iconic little request-do-release routine, no cap β¨.
π SEE ALSO
Kernel file ./tools/gpio/gpio-utils.c β and these cuties right here:
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)gpiotools_sets(9)
Cute little sign-off: this page is sourced from ./tools/gpio, dated October 2026, and it's Operation of gpio(9) ππβ¨
π¦ 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