i40e_ptp_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_ptp_write(9)

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for i40e_ptp_write, and honestly? it's a little icon. let's get into it ✨


🌸 NAME

i40e_ptp_write β€” write the PHC time to the device πŸ•°οΈπŸ’–

✨ SYNOPSIS

void i40e_ptp_write (struct i40e_pf *pf , const struct timespec64 *ts );

like, that's the whole vibe. returns nothing, takes two things, slays quietly. no cap. 🫢

πŸŽ€ ARGUMENTS

  • pf β€” the board private structure 🌈 (yes that's its whole personality, it's the board's private business, we don't pry)
  • ts β€” the timespec structure that holds the new time value ⏰ literally the moment in time we're about to push down to the hardware

πŸ”₯ DESCRIPTION

so here's the tea β˜•: this function writes the PRTTSYN_TIME registers with the user value. that's it, that's the job, and it does it gorgeously πŸ’…

but there's a lil twist β€” the way that we receive a timespec from the stack means we must convert that timespec into nanoseconds before programming the registers. so: convert first, program second. no shortcuts, no vibes-based math. 🧚✨

fr fr, the conversion isn't optional β€” the registers want nanoseconds, the stack hands you a timespec. do the math or the clock is gonna be off and that's not the look. 😭

🌟 SEE ALSO

the whole extended friend group 🫢 β€” every one of these is linked from the kernel file itself:


that's the whole page bestie, go forth and write some registers πŸ’œ

signing off from ./drivers/net/ethernet/intel/i40e, dated October 2026 β€” mwah, ily, see u in the next (9) page πŸ¦‹πŸ’–

πŸ“¦ where this page comes from