i40e_ptp_get_rx_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_ptp_get_rx_events πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes, that's the manual name, we're fancy here β€” and today's main character is i40e_ptp_get_rx_events(9). buckle up, this one's short but she matters πŸŽ€


✨ NAME ✨

i40e_ptp_get_rx_events β€” read I40E_PRTTSYN_STAT_1 and latch events πŸ’… no cap, that's literally the whole job description


🌸 SYNOPSIS 🌸

u32 i40e_ptp_get_rx_events (struct i40e_pf *pf );

that's it. that's the whole vibe. one arg, one u32 coming back at you πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • pf β€” the PF data structure πŸ’– (the driver's whole personality lives in there, so like, handle with care)

πŸ’– DESCRIPTION πŸ’–

so what she actually does: this function reads I40E_PRTTSYN_STAT_1 and updates the corresponding timers for any latch events she noticed πŸ‘€βœ¨

and why do we care? because this lets the driver keep track of the first time a latch event was noticed β€” that timestamp is then used to help clear out Rx timestamps for packets that got dropped or lost 😭🫢 lowkey a cleanup queen

she also returns the current value of I40E_PRTTSYN_STAT_1 β€” that's the u32, that's the tea β˜•

⚠️ important, bestie: this function is expected to be called only while under the ptp_rx_lock πŸ”’ like, no sneaking in without the lock, that's not the move. periodt.

πŸ”₯ SEE ALSO πŸ”₯

the source itself, iykyk:

  • Kernel file ./drivers/net/ethernet/intel/i40e/i40e_ptp.c πŸ“

and her entire friend group, fr fr β€” every single one:

that's the whole group chat, no one left on read πŸ’€πŸ’–


🧚 sign-off 🧚

this masterpiece lives in ./drivers/net/ethernet/intel/i40e πŸ¦‹ and it's dated October 2026 β€” yeah, she's from the future, main character energy only πŸ‘‘βœ¨ go forth and latch those events, bestie, and remember the ptp_rx_lock πŸ’…πŸŒΈ

πŸ“¦ where this page comes from