i40e_ptp_settime(9)
π i40e_ptp_settime(9)
okay bestie, so this is a page from the Kernel API Manual β yes, the real one, the kernel docs β and it's all about i40e_ptp_settime. Sit down, hydrate, and let's get into it π
β¨ NAME β¨
i40e_ptp_settime β set the time of the PHC πβ¨
(that's the PTP Hardware Clock, iykyk β the actual clock living on the network card itself, not your system clock, no cap)
π¦ SYNOPSIS π¦
int i40e_ptp_settime (struct ptp_clock_info *ptp , const struct
timespec64 *ts );
that's the whole signature, copy it exactly, don't be weird about the spacing, it's literally how it's printed π«Ά
π ARGUMENTS π
ptpβ the PTP clock structure π« this is the clock thingy you're working with.tsβ atimespec64structure that's holding the brand-new time value you wanna slam in there. that's the payload, bestie π
πΈ DESCRIPTION πΈ
so what it does is: it sets the device clock to the value the user handed in. that's the vibe. the clock on the device gets updated to whatever you passed.
and the little detail that matters, bestie β the conversion from timespec to ns (nanoseconds, obviously) happens in the write function. not here. so this function itself? it's not doing that math. the write function is the one doing the conversion, periodt β¨
π SEE ALSO π
the kernel file lives right here, go look, it's giving source-of-truth:
./drivers/net/ethernet/intel/i40e/i40e_ptp.c
and now the whole friend group, in order, no skips, no cuts π:
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_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)
like, that's the entire clique and they're all iconic in their own way ππ
ngl thei40_ptp_reset_timing_events(9)one is spelledi40_noti40e_up there β that's literally how it appears on the page, so bestie I'm keeping it exactly as-is, don't come for me π
and that's the page!! this one's from the kernel docs under ./drivers/net/ethernet/intel/i40e, dated October 2026, and the page itself is i40e_ptp_settime(9). mwah, go set some clocks, you're gonna slay ππβ¨
π¦ 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