STRUCT GPIO_V2_LINE_CONFIG_ATTRIBUTE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, this is struct gpio_v2_line_config_attribute β€” literally a configuration attribute that's tied to one or more of the lines you requested ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct gpio_v2_line_config_attribute {
    struct gpio_v2_line_attribute attr;
    __aligned_u64 mask;
 };

no cap, that's the whole glow-up πŸ’–


🌸 Members 🌸

  • attr β€” the configurable attribute itself, the main character of this struct πŸ‘‘ it's the actual thing you're configuring.
  • mask β€” a bitmap that says which lines this attribute applies to 🫢 each bit number corresponds to the index into struct gpio_v2_line_request.offsets. so like, bit 0 = the line at offsets[0], bit 1 = offsets[1], iykyk πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/uapi/linux/gpio.h is the mothership, and here's 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(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 gpiohandle_data(9)
  • struct gpioevent_request(9)
  • struct gpioevent_data(9)

go read them all, they ate πŸ”₯


ngl this page lives in ./include/uapi/linux, dated October 2026, and it's filed under struct gpio_v2_line_config_attribute(9) in the Kernel API Manual. that's the vibe check, periodt πŸ’œπŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from