iavf_ptp_set_timestamp_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 to kernel_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 πŸŽ€

  • 0 on 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:


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