i40e_ptp_gettimex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i40e_ptp_gettimex πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this is the page for i40e_ptp_gettimex, and honestly? she's a little function with a very important job πŸ•°οΈβœ¨


🌸 NAME 🌸

i40e_ptp_gettimex β€” get the time of the PHC, no cap ⏰


πŸŽ€ SYNOPSIS πŸŽ€

int i40e_ptp_gettimex (struct ptp_clock_info *ptp , struct timespec64
*ts , struct ptp_system_timestamp *sts );

that's the whole signature right there, exactly as it lives in the kernel, don't come for me about the spacing, I copied it verbatim πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ptp β€” the PTP clock structure. your main character, the clock herself πŸ‘‘
  • ts β€” a timespec structure that's gonna hold the current time value. she's the vessel, she's the moment, she's holding the vibe 🫢
  • sts β€” a structure that holds the system time before and after reading the PHC. like a little before-and-after selfie for timing purposes πŸ“Έ

πŸ”₯ DESCRIPTION πŸ”₯

okay so what she actually does: she reads the device clock, then converts that value into a timespec struct, and returns the correct value in ns. that's it. that's the whole gig. read the clock, convert, hand it over, slay ✨

it's giving "reliable friend who always knows what time it is" energy and honestly we're obsessed πŸ˜­πŸ’œ


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/ethernet/intel/i40e/i40e_ptp.c β€” go read her, she's iconic πŸ“‚

and here's the entire friend group, because apparently this function knows everyone at the party:

like, that's a whole group chat right there, and yes i40_ptp_reset_timing_events(9) really is spelled like that, I don't make the rules πŸ’€


and that's the page, bestie!! πŸŽ€ this lil masterpiece came out of ./drivers/net/ethernet/intel/i40e and is dated October 2026 β€” go forth, read your clocks, and stay iconic πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from