mlx4_en_phc_gettime(9)
β¨ NAME β¨
okay bestie, meet mlx4_en_phc_gettime(9) from the Kernel API Manual β the function that reads the current time from the hardware clock. it's giving timekeeper main character energy β°π
πΈ SYNOPSIS πΈ
int mlx4_en_phc_gettime (struct ptp_clock_info *ptp , struct timespec64
*ts );
so the return type is int, and that's the exact call shape β spaces, line break, and all πβ¨
π ARGUMENTS π
ptpβ the ptp clock structure; yes, that's the thing you hand over π«Άtsβ the timespec structure that's gonna hold the current time value β³
π DESCRIPTION π
Reads the timecounter and returns the correct value in ns, after converting it into a struct timespec β literally the glow-up from raw timecounter to proper timespec πβ¨
π¦ SEE ALSO π¦
the kernel file to peek at is ./drivers/net/ethernet/mellanox/mlx4/en_clock.c β that's the spot π§β¨
and the whole clock-side crew is linked up:
mlx4_en_remove_timestamp(9)mlx4_en_phc_adjfine(9)mlx4_en_phc_adjtime(9)mlx4_en_phc_settime(9)mlx4_en_phc_enable(9)
sign-off time, bestie: the footer's source/version is ./drivers/net/ethernet/mellano... β yes, exactly like that, truncated vibe and all π β dated October 2026, with mlx4_en_phc_gettime(9) doing its little title cameo down there. that's the page β periodt ππ
π¦ 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