idpf_ptp_get_crosststamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… idpf_ptp_get_crosststamp β€” bestie, let's grab a cross timestamp ✨

okay so this is a page from the Kernel API Manual, and it's all about idpf_ptp_get_crosststamp(9) β€” the little function that snatches a device cross timestamp for you. no cap, it's iconic.


🌸 NAME 🌸

idpf_ptp_get_crosststamp β€” capture a device cross timestamp πŸŽ€


✨ SYNOPSIS ✨

int idpf_ptp_get_crosststamp (struct ptp_clock_info *info , struct
       system_device_crosststamp *cts );

like, that's the whole vibe. two args, one int coming back at you 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • info β€” the driver's PTP info structure. literally the structure, the main character of this whole thing πŸ‘‘
  • cts β€” the memory to fill the cross timestamp info. yes bestie, you're passing in the memory and it gets filled πŸ’–

πŸ’… DESCRIPTION πŸ’…

So what does it actually do? It captures a cross timestamp between the system time and the device PTP hardware clock. that's it, that's the whole slay. two clocks, one timestamp, no drama ⭐


πŸ”₯ RETURN πŸ”₯

  • cross timestamp value on success β€” ate, no crumbs πŸ‘‘
  • -errno on failure β€” not the vibe, but at least it tells you why 😭

🌈 SEE ALSO 🌈

fr fr, go read the source, it's right here:

  • Kernel file ./drivers/net/ethernet/intel/idpf/idpf_ptp.c

and the whole friend group πŸ’œ:


πŸ“ tiny vibe check: this page lives under ./drivers/net/ethernet/intel/idpf β€” iykyk πŸ’«

k bye bestie, go timestamp something πŸ’–βœ¨πŸ¦‹ periodt πŸ’…

β€” with love, from the Kernel API Manual crew, source ./drivers/net/ethernet/intel/idpf, October 2026 edition πŸŽ€

πŸ“¦ where this page comes from