idpf_ptp_gettimex64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– idpf_ptp_gettimex64(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for idpf_ptp_gettimex64, and it is literally the function that just... gets the time of the clock πŸ•°οΈβœ¨ Like that's the whole vibe. No cap.


✨ NAME ✨

idpf_ptp_gettimex64 β€” Get the time of the clock πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 ARGUMENTS 🌸

  • info β€” the driver's PTP info structure. this is the main character of the argument list ngl, it's giving "i know where everything is" energy πŸ‘‘
  • ts β€” the timespec64 structure that's gonna hold the current time value. it's the container, it's the little box you put the clock reading in 🎁
  • sts β€” Optional parameter for holding a pair of system timestamps from the system clock. Will be ignored if NULL is given. so like, if you pass NULL she simply does not care, she ignores it, icon behaviour honestly πŸ™ˆ

🌈 RETURN 🌈

on success you get the device clock value in ns, after converting it into a timespec struct πŸ’… and otherwise? -errno. that's it, that's the deal β€” -errno means something went sideways, and the errno will tell you what πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

the kernel file lives right here, bestie:

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

and then the whole friend group, in this exact order, no skipping anyone, we love a full roster 🫢:


and that's the whole page, bestie, you ate that πŸ’…βœ¨ this lil drop came straight out of ./drivers/net/ethernet/intel/idpf and it's dated October 2026 β€” so like, future vibes fr fr. bye ily πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from