i40e_ptp_get_rx_events(9)
π 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:
i40e_ptp_extts0_work(9)i40e_is_ptp_pin_dev(9)i40e_can_set_pins(9)i40_ptp_reset_timing_events(9)i40e_ptp_verify(9)i40e_ptp_read(9)i40e_ptp_write(9)i40e_ptp_convert_to_hwtstamp(9)i40e_ptp_adjfine(9)i40e_ptp_set_1pps_signal_hw(9)i40e_ptp_adjtime(9)i40e_ptp_gettimex(9)i40e_ptp_settime(9)i40e_pps_configure(9)i40e_pin_state(9)i40e_ptp_enable_pin(9)i40e_ptp_feature_enable(9)i40e_ptp_rx_hang(9)i40e_ptp_tx_hang(9)i40e_ptp_tx_hwtstamp(9)i40e_ptp_rx_hwtstamp(9)i40e_ptp_set_increment(9)i40e_ptp_hwtstamp_get(9)i40e_ptp_free_pins(9)i40e_ptp_set_pin_hw(9)i40e_ptp_set_led_hw(9)i40e_ptp_init_leds_hw(9)i40e_ptp_set_pins_hw(9)i40e_ptp_set_pins(9)i40e_ptp_alloc_pins(9)i40e_ptp_set_timestamp_mode(9)i40e_ptp_hwtstamp_set(9)i40e_init_pin_config(9)i40e_ptp_create_clock(9)i40e_ptp_save_hw_time(9)i40e_ptp_restore_hw_time(9)i40e_ptp_init(9)i40e_ptp_stop(9)
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
- 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