e1000e_phc_gettimex(9)
π 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 heretsβ the timespec structure that's gonna hold the current PHC time π«Ά she's the container, she's the momentstsβ 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:
e1000e_phc_adjfine(9)e1000e_phc_adjtime(9)e1000e_phc_get_syncdevicetime(9)e1000e_phc_getcrosststamp(9)e1000e_phc_settime(9)e1000e_phc_enable(9)e1000e_ptp_init(9)e1000e_ptp_remove(9)
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
- 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