ENUM GPIO_V2_LINE_FLAG(9)
π« enum gpio_v2_line_flag(9) π«
okay bestie, welcome to the kernel API manual page for enum gpio_v2_line_flag(9) β yes that's a whole lotta name and yes it slays π
β¨ NAME β¨
enum gpio_v2_line_flag β the actual values you shove into &struct gpio_v2_line_attribute.flags. that's it, that's the whole gig π
πΈ SYNOPSIS πΈ
here's the whole lineup, no cap, every single one:
enum gpio_v2_line_flag {
GPIO_V2_LINE_FLAG_USED ,
GPIO_V2_LINE_FLAG_ACTIVE_LOW ,
GPIO_V2_LINE_FLAG_INPUT ,
GPIO_V2_LINE_FLAG_OUTPUT ,
GPIO_V2_LINE_FLAG_EDGE_RISING ,
GPIO_V2_LINE_FLAG_EDGE_FALLING ,
GPIO_V2_LINE_FLAG_OPEN_DRAIN ,
GPIO_V2_LINE_FLAG_OPEN_SOURCE ,
GPIO_V2_LINE_FLAG_BIAS_PULL_UP ,
GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN ,
GPIO_V2_LINE_FLAG_BIAS_DISABLED ,
GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME ,
GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE
};
π¦ Constants π¦
okay so now we meet the cast, one icon at a time π
GPIO_V2_LINE_FLAG_USEDβ this line is not available for request. taken. spoken for. busy. respectfully, back off πGPIO_V2_LINE_FLAG_ACTIVE_LOWβ the line's active state is physical low. flip the vibe, lowkey means on πGPIO_V2_LINE_FLAG_INPUTβ the line is an input. it's listening, bestie πGPIO_V2_LINE_FLAG_OUTPUTβ the line is an output. it's the one doing the talking π£οΈGPIO_V2_LINE_FLAG_EDGE_RISINGβ the line detects rising edges, meaning inactive to active. going up, up, up β¬οΈβ¨GPIO_V2_LINE_FLAG_EDGE_FALLINGβ the line detects falling edges, meaning active to inactive. and down it goes πGPIO_V2_LINE_FLAG_OPEN_DRAINβ the line is an open drain output. fancy β¨GPIO_V2_LINE_FLAG_OPEN_SOURCEβ the line is an open source output. also fancy, different flavor πGPIO_V2_LINE_FLAG_BIAS_PULL_UPβ the line has pull-up bias enabled πGPIO_V2_LINE_FLAG_BIAS_PULL_DOWNβ the line has pull-down bias enabled π§²GPIO_V2_LINE_FLAG_BIAS_DISABLEDβ the line has bias disabled. no bias here, we stan a neutral icon πGPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIMEβ line events contain REALTIME timestamps β°GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTEβ line events contain timestamps from the hardware timestamping engine (HTE) subsystem π₯
π SEE ALSO π
go read the whole friend group, they're all in the kernel file ./include/uapi/linux/gpio.h:
struct gpiochip_info(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_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)
π that's the whole page bestie, every flag accounted for, nothing skipped, fr fr
and that's a wrap! this iconic little page lives in ./include/uapi/linux, dated October 2026, and it's filed under enum gpio_v2_line_flag(9) π«Άβ¨ bye cutie, go blink some LEDs responsibly π
π¦ 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