i40e_ptp_create_clock(9)
β¨ i40e_ptp_create_clock(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil kernel function in the i40e driver and it's literally the moment a PTP clock device gets born for userspace π
πΈ NAME πΈ
i40e_ptp_create_clock β create a PTP clock device for userspace, slay
π¦ SYNOPSIS π¦
long i40e_ptp_create_clock (struct i40e_pf *pf );
π ARGUMENTS π
pfβ the board private structure π«Ά that's the whole personality of this argument ngl
π DESCRIPTION π
So this function creates a new PTP clock device β¨ that's the whole vibe.
It only creates one if we don't already have one, so it's highkey safe to call whenever π no cap, it won't come for you.
It will return an error if it can't create one, but it returns success if we already have a device π like okay go off, idempotent king.
It should be used by i40e_ptp_init to create the clock initially, and it also prevents global resets from creating new clock devices π₯ that's the whole point, bestie, don't let the resets come in and start making duplicate clocks π
π§ SEE ALSO π§
Kernel file ./drivers/net/ethernet/intel/i40e/i40e_ptp.c π
and the whole friend group, no one gets left out:
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_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_save_hw_time(9)i40e_ptp_restore_hw_time(9)i40e_ptp_init(9)i40e_ptp_stop(9)
okay and that's the whole page bestie, no crumbs left π
this lil masterpiece lives in ./drivers/net/ethernet/intel/i40e, it's dated October 2026, and it's filed under i40e_ptp_create_clock(9) β main character energy fr fr π
β¨π
π¦ 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