ice_ptp_gettimex64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_ptp_gettimex64(9) β€” NAME

okay so this is the Kernel API Manual, section 9, and the function is literally called ice_ptp_gettimex64 β€” it gets the time of the clock. that's it, that's the vibe check πŸ•βœ¨


✨ SYNOPSIS ✨

int ice_ptp_gettimex64 (struct ptp_clock_info *info , struct timespec64
*ts , struct ptp_system_timestamp *sts );

it returns an int, bestie. keep that in mind πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • info β€” the driver's PTP info structure. it's giving "this is the clock's whole personality" energy 🫢
  • ts β€” a timespec64 structure that's gonna hold the current time value. basically the cutest lil time container πŸ’–
  • sts β€” optional parameter for holding a pair of system timestamps from the system clock. if you pass NULL it literally gets ignored, no cap πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what it does: it reads the device clock and returns the correct value in ns, after converting it into a timespec struct. that's the whole plot. lowkey iconic in its simplicity, fr fr 🌸


πŸ¦‹ SEE ALSO πŸ¦‹

first, the kernel file itself lives at ./drivers/net/ethernet/intel/ice/ice_ptp.c β€” that's home base 🏠

and now, the extended family. brace yourself, there's a lot of them and they all ate πŸ’…:

like… the whole friend group showed up to the function's party πŸ§šπŸŽ‰


ngl if you only remember one thing: sts is optional and NULL gets ignored. the rest is just good manners πŸ’€

and that's a wrap, bestie!! this page came straight out of the source at ./drivers/net/ethernet/intel/ice and it's dated October 2026, so mark your calendars πŸ“βœ¨ go read some ice_ptp_* functions and slay the day, mwah πŸ˜­πŸ’–

πŸ“¦ where this page comes from