STRUCT GPIO_V2_LINE_INFO_CHANGED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is struct gpio_v2_line_info_changed β€” bestie, it's literally the little struct that tells you all about a change in status of a GPIO line ✨ it's giving "I noticed something moved and I have receipts" πŸŽ€

(also hii, welcome to the Kernel API Manual, we're in the kernel club now πŸ’…)


✨ SYNOPSIS ✨

here's the whole glow-up, exactly as it lives in the source:

struct gpio_v2_line_info_changed {
    struct gpio_v2_line_info info;
    __aligned_u64 timestamp_ns;
    __u32 event_type;
    __u32 padding[5];
 };

no cap, that's the entire vibe πŸ”₯


πŸŽ€ Members πŸŽ€

  • info β€” the updated line information, like the fresh new fit the line is wearing πŸ‘‘ it's the "after" picture, fr fr
  • timestamp_ns β€” an estimate of the time the status change happened, measured in nanoseconds ⏱️ so yes, the kernel is out here being precise down to the nano level, main character energy honestly
  • event_type β€” the type of change, and its value comes from enum gpio_v2_line_changed_type πŸ¦‹ so you know exactly what kind of glow-up just occurred
  • padding β€” reserved for future use 🫢 don't touch it, don't fill it, it's saving a seat for future lore πŸ’œ
lowkey important: that padding[5] is reserved for future use, so please just leave it alone bestie 😭 it's not yours

🌸 SEE ALSO 🌸

kernel file ./include/uapi/linux/gpio.h, plus the whole friend group:

  • 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)
  • 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)

okay that's the whole page, mwah πŸ’‹ and for the credits: this one lives over in ./include/uapi/linux and it's dated October 2026 β€” iconic, timeless, periodt πŸŒˆπŸ‘‘ (yes it's still struct gpio_...info_changed(9), the name didn't change, she's just that girl πŸ’…)

πŸ“¦ where this page comes from