STRUCT GPIOHANDLE_DATA(9)
π¦ struct gpiohandle_data(9) π¦
okay so bestie, welcome to the Kernel API Manual β this one's a lil vintage, but we're gonna make it make sense π
β¨ NAME β¨
struct gpiohandle_data β literally just the info of values sitting on a GPIO handle π
πΈ SYNOPSIS πΈ
struct gpiohandle_data {
__u8 values[GPIOHANDLES_MAX];
};
yep, that's the whole thing. one member. she's simple, she's iconic, she's values π
π Members π
valuesβ okay so this lil array is doing double duty, main character energy fr:- when you're getting the state of lines, it contains the current state of a line π
- when you're setting the state of lines, it should contain the desired target state π―
States are 0 (inactive) or 1 (active), no cap. and when you're setting? anything other than 0 or 1 will be interpreted as active β so like, don't get cute with it unless you mean it π
β οΈ Note β οΈ
bestie listen. this struct is part of ABI v1 and it is deprecated π like, it's giving "still works but pls move on". use ABI v2 and struct gpio_v2_line_values instead π«Ά
π SEE ALSO π
Kernel file ./include/uapi/linux/gpio.h β and the whole friend group:
struct gpiochip_info(9)enum gpio_v2_line_flag(9)struct gpio_v2_line_values(9)enum gpio_v2_line_attr_id(9)struct gpio_v2_line_attribute(9)struct gpio_v2_line_config_attribute(9)struct gpio_v2_line_config(9)struct gpio_v2_line_request(9)struct gpio_v2_line_info(9)enum gpio_v2_line_changed_type(9)struct gpio_v2_line_info_changed(9)enum gpio_v2_line_event_id(9)struct gpio_v2_line_event(9)struct gpioline_info(9)struct gpioline_info_changed(9)struct gpiohandle_request(9)struct gpiohandle_config(9)struct gpioevent_request(9)struct gpioevent_data(9)
and that's the whole page, bestie π sign-off time: this lil number lives in ./include/uapi/linux, dated October 2026, and yes she's still filed under struct gpiohandle_data(9) β deprecated but never forgotten πβ¨ iykyk πΈ
π¦ 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