ice_ptp_getcrosststamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_ptp_getcrosststamp β€” kernel API manual, bestie edition πŸŽ€

okay so we're diving into ice_ptp_getcrosststamp(9) today and honestly? it's giving "tiny function, big responsibilities." it lives in the kernel API manual, so grab a snack and let's go πŸ¦‹


✨ NAME ✨

ice_ptp_getcrosststamp β€” capture a device cross timestamp. that's it, that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

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

literally two arguments, no notes πŸ”₯


✨ DESCRIPTION ✨

so what this icon actually does πŸ‘‘ is capture a cross timestamp between the ART and the device PTP hardware clock. then it fills in the cross timestamp info and reports it right back to the caller. handing it over, no cap 🫢

but here's the lowkey important part: to correctly correlate the ART timestamp back to the TSC time, the CPU must have X86_FEATURE_TSC_KNOWN_FREQ. it's not a suggestion, bestie, it's a requirement 😭


✨ ARGUMENTS ✨

  • info β€” the driver's PTP info structure. yeah, that one πŸ’œ
  • cts β€” the memory to fill the cross timestamp info. you're giving it a home to fill up ✨

✨ RETURN ✨

zero on success, or a negative error code on failure. zeros are slay, negatives are... not πŸ’€


✨ SEE ALSO ✨

the kernel file itself, for the curious:

  • ./drivers/net/ethernet/intel/ice/ice_ptp.c

and the whole friend group (yes, all of them, no skipping, i checked twice 🧚):


heads up bestie: without X86_FEATURE_TSC_KNOWN_FREQ on the CPU, correlating ART back to TSC won't be correct. that's the whole caveat, don't skip it πŸ™ˆ

🌸 that's the page!! brought to you straight out of ./drivers/net/ethernet/intel/ice, from October 2026, in the kernel API manual β€” slay, go timestamp something πŸ’–βœ¨

πŸ“¦ where this page comes from