ENUM GPIO_V2_LINE_ATTR_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ENUM GPIO_V2_LINE_ATTR_ID(9) ✨

okay so bestie, welcome to the manual page for enum gpio_v2_line_attr_id β€” from the Kernel API Manual, no biggie πŸ’… this little icon tells you which field of the attribute union is actually in use, like a vibe check for a C union 🫢


🌸 NAME 🌸

enum gpio_v2_line_attr_id β€” literally the values for &struct gpio_v2_line_attribute.id, and they're the ones that say which field of the attribute union is in use. that's the whole job. iconic honestly πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

here's the shape of it, bestie β€” copy it exactly, don't freestyle:

enum gpio_v2_line_attr_id {
    GPIO_V2_LINE_ATTR_ID_FLAGS ,
    GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES ,
    GPIO_V2_LINE_ATTR_ID_DEBOUNCE

};

πŸ¦‹ CONSTANTS πŸ¦‹

three of them, and each one is basically pointing at a different field like "that one. use that one." πŸ‘‡

  • GPIO_V2_LINE_ATTR_ID_FLAGS β€” the flags field is in use ✨
  • GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES β€” the values field is in use πŸ’–
  • GPIO_V2_LINE_ATTR_ID_DEBOUNCE β€” the debounce_period_us field is in use 🌸
ngl bestie, the whole bit is just "which union member are we talking about" β€” pick the constant, get the field. no cap 🧚

πŸ”₯ SEE ALSO πŸ”₯

the friend group, in order, fr fr β€” all of these live in the kernel file ./include/uapi/linux/gpio.h:

  • struct gpiochip_info(9)
  • enum gpio_v2_line_flag(9)
  • struct gpio_v2_line_values(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 gpiohandle_data(9)
  • struct gpioevent_request(9)
  • struct gpioevent_data(9)

and that's the whole page, bestie, you ate that πŸ“ go forth and identify your union fields πŸ’œ

xoxo, your girl signing off from ./include/uapi/linux β€” dated October 2026 β€” for the enum gpio_v2_line_attr_id(9) era πŸ’…βœ¨

πŸ“¦ where this page comes from