cavium_ptp_gettime(9)
π 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, literallystruct timespec64 *tsin the signature π .
π SEE ALSO π
- kernel file:
./drivers/net/ethernet/cavium/common/cavium_ptp.cβ go read it, iykyk π. cavium_ptp_adjfine(9)cavium_ptp_adjtime(9)cavium_ptp_settime(9)cavium_ptp_enable(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms