ENUM GPIO_V2_LINE_EVENT_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum gpio_v2_line_event_id(9) β€” Kernel API Manual

okay so bestie, welcome to the manual page for enum gpio_v2_line_event_id. This is the kernel API manual, and this little guy is literally just the list of allowed values for &struct gpio_v2_line_event.id πŸŽ€. That's it. That's the whole vibe. No cap.


✨ NAME ✨

enum gpio_v2_line_event_id β€” the values that go in &struct gpio_v2_line_event.id πŸ¦‹


🌸 SYNOPSIS 🌸

enum gpio_v2_line_event_id {
    GPIO_V2_LINE_EVENT_RISING_EDGE ,
    GPIO_V2_LINE_EVENT_FALLING_EDGE

};

look at her. two members. zero drama. iconic πŸ’…


πŸ‘‘ Constants πŸ‘‘

so there's exactly two of them and they're both about edges, which honestly makes sense for a GPIO line event, iykyk:

  • GPIO_V2_LINE_EVENT_RISING_EDGE β€” this is the "event triggered by a rising edge" one πŸ”₯ like the signal went up and the kernel is like "noted, bestie."
  • GPIO_V2_LINE_EVENT_FALLING_EDGE β€” and this one is the "event triggered by a falling edge" one 🌈 signal goes down, event fires, we move.

that's the whole enum. two constants, both edge-coded, both slaying in their own lane ✨


🫢 SEE ALSO 🫢

okay this is the part where the kernel is like "and here's everyone else at the party" β€” the kernel file is ./include/uapi/linux/gpio.h, and it wants you to go hang out with:

  • 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_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)
  • 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 a whole group chat right there 😭 go read them all, fr fr. main character energy is struct gpio_v2_line_event(9) obviously but don't tell the others πŸ’€


ngl if you're here just to find out which edge fired an event: it's one of the two constants above. rising or falling. that's the post 🧚

and that's a wrap, bestie!! this page came from ./include/uapi/linux, dated October 2026, and it's filed under enum gpio_v2_line_event_id(9). go forth and read your edges πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from