STRUCT PPS_GEN_EVENT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to struct pps_gen_event(9) from the Kernel API Manual πŸ’… this page is literally all about the PPS generator events, and yes it's giving niche-kernel-lore in the best way πŸ¦‹

✨ SYNOPSIS ✨

struct pps_gen_event {
    unsigned int event;
    unsigned int sequence;
 };

🫢 Members 🫢

  • event β€” the event type πŸ‘€ like, which event it is, periodt.
  • sequence β€” the event sequence number πŸ”’ the sequence-y number, no cap.

🌸 Description 🌸

okay so userspace can get the last PPS generator event by using the ioctl(pps_gen, PPS_GEN_FETCHEVENT, ...) syscall πŸ’– that's the move, bestie.

The sequence field can be used to save the last event ID, while in the event field is stored the last event type ✨ yes, they're doing different jobs and both are main characters.

Currently known event is:

  • PPS_GEN_EVENT_MISSEDPULSE β€” last pulse was not generated 😭 the pulse did not happen, and that's the whole mood.

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/uapi/linux/pps_gen.h πŸ‘‘ go read it, iykyk.

xoxo, bestie 🫢 this iconic little page came from ./include/uapi/linux, dated October 2026, and it's serving struct pps_gen_event(9) energy πŸ’…βœ¨

πŸ“¦ where this page comes from