STRUCT GPIOEVENT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is the struct gpioevent_data(9) page from the Kernel API Manual, and the whole point is: struct gpioevent_data β€” The actual event being pushed to userspace. That's her job, bestie. πŸ’…

✨ SYNOPSIS ✨

struct gpioevent_data {
    __u64 timestamp;
    __u32 id;
 };

🫢 Members 🫢

  • timestamp β€” best estimate of time of event occurrence, in nanoseconds. Literally the when of it all. ⏱️
  • id β€” event identifier, one of GPIOEVENT_EVENT_RISING_EDGE or GPIOEVENT_EVENT_FALLING_EDGE. So you know which edge showed up. πŸ¦‹

🌸 Note 🌸

⚠️ bestie, major heads-up: this struct is part of ABI v1 and is deprecated. Use ABI v2 and struct gpio_v2_line_event instead. Like, respectfully, move on. 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/uapi/linux/gpio.h β€” the source, the lore, the blueprint.

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

mwah πŸ’‹ β€” source/version: ./include/uapi/linux; date: October 2026; page: struct gpioevent_data(9). periodt. πŸ‘‘

πŸ“¦ where this page comes from