STRUCT HWTSTAMP_CONFIG(9)
π 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 ofHWTSTAMP_FLAG_*, okay? that's the whole assignment. πtx_typeβ one ofHWTSTAMP_TX_*, iconic. β¨rx_filterβ one ofHWTSTAMP_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.hstructso_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
- 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