ENUM GPIO_V2_LINE_ATTR_ID(9)
β¨ 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β theflagsfield is in use β¨GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUESβ thevaluesfield is in use πGPIO_V2_LINE_ATTR_ID_DEBOUNCEβ thedebounce_period_usfield 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
- 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