STRUCT PTP_SYSTEM_TIMESTAMP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ptp_system_timestamp(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” today's main character is struct ptp_system_timestamp, and trust me, she is that girl. this whole page is about one lil struct whose whole job is holding onto the system time that lines up with a PHC timestamp. no cap. let's get into it πŸŽ€


✨ NAME ✨

struct ptp_system_timestamp β€” literally the system time corresponding to a PHC timestamp πŸ•°οΈβœ¨

🌸 SYNOPSIS 🌸

here's the whole glow-up, verbatim, don't touch the formatting pls:

struct ptp_system_timestamp {
    struct system_time_snapshot pre_sts;
    struct system_time_snapshot post_sts;
    clockid_t clockid;
 };

πŸ¦‹ Members πŸ¦‹

the squad, one by one:

  • pre_sts β€” the system time snapshot from before capturing PHC. she's the "before" pic πŸ“Έ
  • post_sts β€” the system time snapshot from after capturing PHC. the "after" pic, obviously πŸ’…
  • clockid β€” the clock-base used for capturing the system timestamps. the vibe check of which clock we're on ⏰

πŸ‘‘ SEE ALSO πŸ‘‘

go read the kernel file ./include/linux/ptp_clock_kernel.h first (iykyk), and then the whole friend group:

fr fr, ptp_clock_event(9) is in there twice β€” that's not me being messy, that's exactly how the original lists it. copying it faithfully is the assignment πŸ’–

and that's the whole page, bestie 🫢 sourced from ./include/linux, dated October 2026, filed under struct ptp_system_timestamp(9) β€” slay, iconic, periodt πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from