i40e_ptp_hwtstamp_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_ptp_hwtstamp_get β€” NAME

okay so i40e_ptp_hwtstamp_get is literally your interface to read the HW timestamping πŸ’– β€” and yes bestie, this is a page from the Kernel API Manual, so get comfy.


✨ SYNOPSIS ✨

int i40e_ptp_hwtstamp_get (struct net_device *netdev , struct
      kernel_hwtstamp_config *config );

🫢 ARGUMENTS 🫢

  • netdev β€” the network device structure πŸ¦‹ like, the actual NIC we're talking to.
  • config β€” the timestamping configuration structure ✨ this is where the good stuff lands.

🌸 DESCRIPTION 🌸

Bestie, all this does is obtain the current hardware timestamping settings as requested πŸ’… straightforward main character energy, no cap.

And the way it does it? It keeps a shadow copy</star> β€” sorry, a shadow copy β€” of the timestamp settings 😭 it does NOT try to deconstruct them from the registers. Nope. Not doing that. We keep a shadow copy, periodt. Not me trying to reverse-engineer registers, we simply do not πŸ™ˆ.


πŸ”₯ SEE ALSO πŸ”₯

The kernel file lives here, iconic behaviour:

./drivers/net/ethernet/intel/i40e/i40e_ptp.c

And the whole friend group β€” a full roster, no gatekeeping πŸŽ€:

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_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, i40_ptp_reset_timing_events(9) in that list is spelled with one e β€” that's exactly how it shows up here, so bestie don't "fix" it, just copy it character for character πŸ™ˆ

aaaand that's the whole vibe check βœ… this page came from ./drivers/net/ethernet/intel/i40e and it's dated October 2026 β€” slay, mwah, bye πŸ’…πŸ’œπŸ¦‹

πŸ“¦ where this page comes from