i40e_ptp_con..._to_hwtstamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_ptp_con..._to_hwtstamp(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual page for i40e_ptp_convert_to_hwtstamp β€” yes the title is truncated in the header (i40e_ptp_con..._to_hwtstamp(9)) because kernel function names are absolutely unhinged and nobody could fit that whole thing in a man page header, periodt.


✨ NAME ✨

i40e_ptp_convert_to_hwtstamp β€” literally just converting the device clock to system time, no cap πŸ•°οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

void i40e_ptp_convert_to_hwtstamp (struct skb_shared_hwtstamps
*hwtstamps , u64 timestamp );

πŸŽ€ ARGUMENTS πŸŽ€

  • hwtstamps β€” the timestamp structure you're updating, she's the main character here, she gets written to πŸ’–
  • timestamp β€” the timestamp straight from the hardware, fresh out of the NIC ✨

🌸 DESCRIPTION 🌸

okay so here's the vibe: we need to convert the NIC clock value into a hwtstamp so the upper level timestamping functions can actually use it. and the way that the timestamp is simply a 64-bit nanosecond value?? iconic. because of that we can just call ns_to_ktime directly to handle it. no extra steps, no drama, it's giving efficient 🫢


πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/net/ethernet/intel/i40e/i40e_ptp.c

and now the whole friend group, not me listing all of these but every single one of them is here fr fr:


πŸ‘‘ the cute sign-off πŸ‘‘

this gem lives over at ./drivers/net/ethernet/intel/i40e, dated October 2026, and answers to the name i40e_ptp_con..._to_hwtstamp(9). mwah πŸ’‹ go convert some timestamps bestie πŸ’œ

πŸ“¦ where this page comes from