STRUCT HWTSTAMP_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the struct hwtstamp_config(9) page, straight outta the Kernel API Manual β€” this is the parameter for %SIOCGHWTSTAMP and %SIOCSHWTSTAMP, and it's literally the blueprint for that timestamp-config moment. πŸ’…

✨ SYNOPSIS ✨

bestie, here's the shape of it, no cap:

       struct hwtstamp_config {
           int flags;
           int tx_type;
           int rx_filter;
        };

🌸 Members 🌸

  • flags β€” one of HWTSTAMP_FLAG_*, okay? that's the whole assignment. πŸŽ€
  • tx_type β€” one of HWTSTAMP_TX_*, iconic. ✨
  • rx_filter β€” one of HWTSTAMP_FILTER_*, periodt. πŸ’«

πŸ¦‹ Description πŸ¦‹

So SIOCGHWTSTAMP and SIOCSHWTSTAMP expect a struct ifreq with an ifr_data pointer to this structure. That's the vibe: ifreq bestie points at this struct and the kernel knows what's up. 🫢

For SIOCSHWTSTAMP, there's a little plot twist: if the driver or hardware does not support the requested rx_filter value, the driver may use a more general filter mode. In this case rx_filter will indicate the actual mode on return. So on the way back, rx_filter is telling you the real mode β€” receipts, not guesses. πŸ˜­πŸ‘‘

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./include/uapi/linux/net_tstamp.h struct so_timestamping(9) β€” yes bestie, go read those too. πŸ‘€

mwah πŸ’‹ β€” this page came from ./include/uapi/linux, dated October 2026, and it's the struct hwtstamp_config(9) page. bye bestie, go slay your timestamps 🫢✨

πŸ“¦ where this page comes from