e1000e_phc_gettimex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– e1000e_phc_gettimex(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, THE Kernel API Manual, we're in the big leagues now ✨ This little icon is e1000e_phc_gettimex, and she is literally the clock girl of the e1000e driver. Let's get into it πŸ•


✨ NAME ✨

e1000e_phc_gettimex β€” reads the current time from the hardware clock and the system clock. Both. At once. Multitasking queen πŸ‘‘


🌸 SYNOPSIS 🌸

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

three pointers, one int, zero chill. it's giving "i return a status code and i will be judged by it" πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ptp β€” the ptp clock structure πŸ•°οΈ like, the whole clock vibe lives in here
  • ts β€” the timespec structure that's gonna hold the current PHC time 🫢 she's the container, she's the moment
  • sts β€” the structure that holds the current system time 🧚 so we got the hardware's truth AND the system's truth, side by side, no cap

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the actual tea β˜•: it reads the timecounter, then returns the correct value in ns after converting it into a struct timespec. nanoseconds in, timespec out, that's the whole personality. lowkey elegant, highkey essential πŸ’«


🌈 SEE ALSO 🌈

the kernel file where all of this actually lives, bestie:

./drivers/net/ethernet/intel/e1000e/ptp.c

and the whole friend group πŸ«‚ go say hi:

it's giving "found family, but make it kernel networking" πŸ˜­πŸ’œ


ngl this one's short and sweet β€” no scary warnings, no deprecated behaviour, no "undefined" anything. she's a clean read. take the win πŸ“

and that's the page!! πŸŽ‰ this lil gem is from the Kernel API Manual β€” source line reads ./drivers/net/ethernet/intel/e... (they really said "you get the idea" and cut it off 😭) and it's dated October 2026, where it's signed e1000e_phc_gettimex(9). bye bestie, go read some clocks πŸ’–πŸ•°οΈβœ¨

πŸ“¦ where this page comes from