ENUM GPIO_V2_LINE_EVENT_ID(9)
π 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
- 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