fec_ptp_adjfine(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘

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