iavf_ptp_set_timestamp_mode(9)
β¨ iavf_ptp_set_timestamp_mode(9) β¨
Okay bestie, so we're in the Kernel API Manual today and the star of the show is iavf_ptp_set_timestamp_mode β literally the function that tells your device how it's gonna timestamp stuff. Buckle up, it's short but it's cute π
πΈ NAME πΈ
iavf_ptp_set_timestamp_mode β the one that sets the device timestamping mode, no cap π
π¦ SYNOPSIS π¦
int iavf_ptp_set_timestamp_mode (struct iavf_adapter *adapter , struct
kernel_hwtstamp_config *config );
πΌ ARGUMENTS πΌ
adapterβ your private adapter structure, the main character of the whole operation πconfigβ a pointer tokernel_hwtstamp_config, i.e. the vibe check on what config we're working with
π DESCRIPTION π
So basically it sets the timestamping mode that got requested from userspace. That's it, that's the function β short, sweet, does exactly what it says on the tin π
β NOTE β
Okay this part is important, don't skip it: this function always translates Rx timestamp requests for any packet category into HWTSTAMP_FILTER_ALL. Like, every single one. Not a drill π
π RETURN π
0on success, slay β¨- a negative error code otherwise, and we simply do not stan π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/intel/iavf/iavf_ptp.c β plus the whole friend group:
iavf_ptp_disable_rx_tstamp(9)iavf_ptp_enable_rx_tstamp(9)iavf_ptp_set_ts_config(9)iavf_ptp_cap_supported(9)iavf_allocate_ptp_cmd(9)iavf_queue_ptp_cmd(9)iavf_send_phc_read(9)iavf_read_phc_indirect(9)iavf_ptp_cache_phc_time(9)iavf_ptp_do_aux_work(9)iavf_ptp_register_clock(9)iavf_ptp_init(9)iavf_ptp_release(9)iavf_ptp_process_caps(9)iavf_ptp_extend_32b_timestamp(9)
That's the whole page bestie, go touch some packets π«Ά
This one came straight out of ./drivers/net/ethernet/intel/iavf, dated October 2026 β manual page iavf_ptp_set_timestamp_mode(9), signing off ππ§
π¦ 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