STRUCT GPIO_V2_LINE_VALUES(9)
π struct gpio_v2_line_values(9) β like, the whole Kernel API Manual vibe β¨
okay so bestie, we're in the Kernel API Manual today and this one is a tiny little struct that does so much. it's giving "small but mighty" fr fr. it's struct gpio_v2_line_values and it's literally just the values of GPIO lines. that's it. that's the whole thing. and honestly? iconic. π
πΈ NAME πΈ
struct gpio_v2_line_values β the values of GPIO lines, no cap π
β¨ SYNOPSIS β¨
here's the whole shape of it, bestie β copy it exactly, don't be weird about it:
struct gpio_v2_line_values {
__aligned_u64 bits;
__aligned_u64 mask;
};
two __aligned_u64 fields. that's the entire struct. she's compact, she's aligned, she's serving exactly what she needs to serve. π
π¦ Members π¦
bitsβ a bitmap holding the value of the lines. set a bit to1for active and0for inactive. that's the actual data, the main character of the struct honestly πmaskβ a bitmap that says which lines you're getting or setting. each bit number corresponds to the index intostruct gpio_v2_line_request.offsetsβ so like, bit 0 = the first offset, bit 1 = the second one, and on and on. it's the guest list, andbitsis what happens to everyone who made it past the rope π«Ά
ngl the whole thing only makes sense as a pair:maskpicks the lines,bitstells you their values. don't @ me.
π₯ SEE ALSO π₯
so many friends, so many (9)s. go read these, iykyk:
- Kernel file
./include/uapi/linux/gpio.h struct gpiochip_info(9)enum gpio_v2_line_flag(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 gpiohandle_data(9)struct gpioevent_request(9)struct gpioevent_data(9)
like, the whole gpio extended universe is in here. a crossover event. π
and that's the page, bestie! this lil' entry lives in ./include/uapi/linux and the version stamp says October 2026, under the title struct gpio_v2_line_values(9) β so if anyone asks, you heard it from me first. mwah ππ§β
π¦ 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