i40e_ptp_gettimex(9)
β¨ i40e_ptp_gettimex π
okay so bestie, welcome to the Kernel API Manual β this is the page for i40e_ptp_gettimex, and honestly? she's a little function with a very important job π°οΈβ¨
πΈ NAME πΈ
i40e_ptp_gettimex β get the time of the PHC, no cap β°
π SYNOPSIS π
int i40e_ptp_gettimex (struct ptp_clock_info *ptp , struct timespec64
*ts , struct ptp_system_timestamp *sts );
that's the whole signature right there, exactly as it lives in the kernel, don't come for me about the spacing, I copied it verbatim π
π¦ ARGUMENTS π¦
ptpβ the PTP clock structure. your main character, the clock herself πtsβ a timespec structure that's gonna hold the current time value. she's the vessel, she's the moment, she's holding the vibe π«Άstsβ a structure that holds the system time before and after reading the PHC. like a little before-and-after selfie for timing purposes πΈ
π₯ DESCRIPTION π₯
okay so what she actually does: she reads the device clock, then converts that value into a timespec struct, and returns the correct value in ns. that's it. that's the whole gig. read the clock, convert, hand it over, slay β¨
it's giving "reliable friend who always knows what time it is" energy and honestly we're obsessed ππ
π SEE ALSO π
the kernel file lives at ./drivers/net/ethernet/intel/i40e/i40e_ptp.c β go read her, she's iconic π
and here's the entire friend group, because apparently this function knows everyone at the party:
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_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)
like, that's a whole group chat right there, and yes i40_ptp_reset_timing_events(9) really is spelled like that, I don't make the rules π
and that's the page, bestie!! π this lil masterpiece came out of ./drivers/net/ethernet/intel/i40e and is dated October 2026 β go forth, read your clocks, and stay iconic πβ¨π¦
π¦ 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