ENUM GPIO_V2_LINE_FLAG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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