STRUCT GPIOHANDLE_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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