igc_ptp_systim_to_hwtstamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– igc_ptp_systim_to_hwtstamp(9) β€” the kernel API manual, but make it cute πŸŽ€

okay so bestie, welcome to the igc_ptp_systim_to_hwtstamp page from the Kernel API Manual ✨ this one's a little function with a big job and honestly? it ate. let's get into it πŸ’…


✨ NAME ✨

igc_ptp_systim_to_hwtstamp β€” literally converts a system time value into a HW timestamp πŸ•°οΈβœ¨


🌸 SYNOPSIS 🌸

int igc_ptp_systim_to_hwtstamp (struct igc_adapter *adapter , struct
       skb_shared_hwtstamps *hwtstamps , u64 systim );

that's it, that's the whole vibe. three args, one int return, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” the board private structure πŸ‘‘ like, the whole adapter's personal business
  • hwtstamps β€” the timestamp structure you're updating πŸ’– she gets written to, she's the main character
  • systim β€” an unsigned 64bit system time value πŸ”₯ sixty-four whole bits of it

πŸ’€ DESCRIPTION πŸ’€

so here's the situation bestie: we have a system time value chillin' in the RX/TXSTMP registers, and it's giving raw. we need to convert that value into a hwtstamp β€” one that the upper level timestamping functions can actually use πŸ˜­πŸ™ˆ

it's a glow-up. register value in, usable hwtstamp out. iconic behavior honestly.

returns 0 on success βœ… that's the good ending, we love a zero return

🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/ethernet/intel/igc/igc_ptp.c πŸ“ and these are her friends, her crew, her whole social circle:

go read them all, iykyk πŸ§šπŸ’œ


and that's the page!! this one came from ./drivers/net/ethernet/intel/igc, dated October 2026, and it's the igc_ptp_systim_to_hwtstamp(9) manual page πŸŽ€ tysm for reading bestie, go convert some timestamps responsibly πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from