cavium_ptp_gettime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ cavium_ptp_gettime(9) πŸ‘‘

okay so bestie, welcome to the Kernel API Manual ✨ β€” today’s main character is cavium_ptp_gettime(9), and yes the (9) is giving kernel-section-number energy πŸ‘‘πŸ’…. this page is all about getting hardware clock time with adjustment, and i’m lowkey obsessed with how clean that is 🫢.


πŸ’– NAME πŸ’–

cavium_ptp_gettime β€” get hardware clock time with adjustment. that’s the vibe, fr fr: hardware clock time + adjustment 🌸.

✨ SYNOPSIS ✨

int cavium_ptp_gettime (struct ptp_clock_info *ptp_info , struct
       timespec64 *ts );

the return type is int, and the call takes struct ptp_clock_info *ptp_info plus struct timespec64 *ts β€” copy it exactly, i don’t make the rules 😌.

πŸŽ€ ARGUMENTS πŸŽ€

  • ptp_info β€” PTP clock info. yes bestie, the PTP clock info, right there in the call 🫢.
  • ts β€” timespec. the timespec slot, literally struct timespec64 *ts in the signature πŸ’….

🌈 SEE ALSO 🌈


mwah πŸ’‹ this page’s source/version footer is ./drivers/net/ethernet/cavium/..., dated October 2026, and it’s signed cavium_ptp_gettime(9) β€” periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from