i40e_ptp_adjtime(9)
πΈ i40e_ptp_adjtime(9) β the Kernel API Manual glow-up π
okay so bestie, you're in the Kernel API Manual and this page is all about i40e_ptp_adjtime, which is genuinely one of the most satisfying little functions in the i40e PTP universe. it's giving "small function, big responsibility" energy. let's go π
β¨ NAME β¨
i40e_ptp_adjtime β adjust the PHC time. that's it, that's the whole vibe. nudge the clock, slay.
π¦ SYNOPSIS π¦
int i40e_ptp_adjtime (struct ptp_clock_info *ptp , s64 delta );
π ARGUMENTS π
ptpβ the PTP clock structure, aka the main character of this whole operation πdeltaβ the offset in nanoseconds you wanna adjust the PHC time by. it's literally a signed 64-bit number so yeah, you can go backwards too, we don't judge π
π DESCRIPTION π
so here's the tea: this function adjusts the current clock time by a delta that you specify in nanoseconds. that's the whole bit. no cap, no extra steps β you hand it a ptp clock and a delta, and it shifts the PHC time by exactly that much. tiny function, enormous "i'm the reason your timestamps line up" energy β
ngl, the units matter β delta is in nanoseconds, so if you're thinking in seconds you're gonna have a bad time π
π SEE ALSO π
the whole i40e PTP friend group, no one gets left out π«Ά
- the kernel file lives at
./drivers/net/ethernet/intel/i40e/i40e_ptp.cβ go say hi 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_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)
iykyk, that's the full set β every single one of them, periodt π
and that's the page! this one lives under ./drivers/net/ethernet/intel/i40e and it's dated October 2026, so likeβ¦ future icon behavior fr fr π§ mwah, go adjust some clocks 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