fec_ptp_adjfine(9)
β¨ fec_ptp_adjfine(9) β¨
okay so bestie, welcome to the Kernel API Manual π this is a little corner of the kernel where we gently nudge a clock's frequency, and honestly? iconic behavior.
πΈ NAME πΈ
fec_ptp_adjfine β adjust ptp cycle frequency π°οΈβ¨
π¦ SYNOPSIS π¦
int fec_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);
no cap, that's the whole signature. copy it exactly, please and thank you π«Ά
π ARGUMENTS π
ptpβ the ptp clock structure π this is the main character, it's the clock we're messing with.scaled_ppmβ scaled parts per million adjustment from base π like, how far off from the base frequency are we trying to go, expressed in fancy scaled ppm.
π₯ DESCRIPTION π₯
So what this does is adjust the frequency of the ptp cycle counter by the indicated amount from the base frequency. that's it, that's the vibe β
Real talk about that scaled_ppm though: scaled parts per million means ppm with a 16-bit binary fractional field. yes, sixteen bits of fractional goodness, we love precision in this house π
And then the fun part: because ENET hardware frequency adjust is complex, using software method to do that. π So the hardware is doing too much, so we let software handle it instead. it's giving "I'll just do it myself" energy, and honestly? valid. no cap.
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/freescale/fec_ptp.c fec_ptp_read(9)fec_ptp_enable_pps(9)fec_ptp_start_cyclecounter(9)fec_ptp_adjtime(9)fec_ptp_gettime(9)fec_ptp_settime(9)fec_ptp_enable(9)fec_ptp_init(9)
go read those too, they're all part of the same friend group π§π
and that's the page bestie!! πβ¨ this one lives in ./drivers/net/ethernet/freescale, it's the October 2026 edition, and it's the fec_ptp_adjfine(9) manual page β slay, go adjust some frequencies responsibly π
ππ¦
π¦ 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