i40e_ptp_read(9)
β¨ i40e_ptp_read(9) β¨
okay so this is a page from the Kernel API Manual, bestie β yes, the actual kernel manual, we're in the big leagues now π
π NAME π
i40e_ptp_read β literally just reads the PHC time straight off the device πβ¨
π SYNOPSIS π
void i40e_ptp_read (struct i40e_pf *pf , struct timespec64 *ts , struct
ptp_system_timestamp *sts );
like. that's the whole thing. three arguments, no return value, she's void and she's thriving πΈ
π¦ ARGUMENTS π¦
pfβ the board private structure, aka the main character of this whole file πββοΈtsβ a timespec structure that's gonna hold the current time value, she's the container, she's holding it down π«Άstsβ aptp_system_timestampstructure holding the system time before and after reading the PHC, so we know exactly how long the vibe check took β±οΈβ¨
π₯ DESCRIPTION π₯
so what she does is β she reads the PRTTSYN_TIME registers and stashes them into a timespec. easy, right? NOT SO FAST bestie π
because those registers are 64 bits of nanoseconds, she cannot just hand that over raw. she has to convert the result to a timespec before she can return it. it's giving "I have the data but it's in the wrong units" energy fr fr π
π SEE ALSO π
the kernel file lives at ./drivers/net/ethernet/intel/i40e/i40e_ptp.c β go look, iykyk ππ
and then there's the whole friend group, the entire PTP extended universe, no cap:
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_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_get_rx_events(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)
and that's the page!! π this iconic little number comes to you from ./drivers/net/ethernet/intel/i40e, dated October 2026 β mwah, love that for us, see u in the next manpage bestie ππ¦β¨
π¦ 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