STRUCT GPIO_V2_LINE_CONFIG_ATTRIBUTE(9)
π 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 intostruct gpio_v2_line_request.offsets. so like, bit0= the line atoffsets[0], bit1=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 understruct gpio_v2_line_config_attribute(9)in the Kernel API Manual. that's the vibe check, periodt ππ§ββοΈ
π¦ 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