ethtool_get_...nfo_by_layer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ethtool_get_ts_info_by_layer(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes, that's the manual name, and yes, this page is genuinely about one function that tells you whether your timestamping magic lives in the MAC layer or the PHY layer. no cap, it's giving niche-but-iconic πŸŽ€


🌸 NAME 🌸

ethtool_get_ts_info_by_layer β€” Obtains time stamping capabilities from the MAC or PHY layer. πŸ•°οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

int ethtool_get_ts_info_by_layer (struct net_device *dev , struct kernel_ethtool_ts_info *info );

πŸ’– ARGUMENTS πŸ’–

  • dev β€” pointer to net_device structure. it's the netdev you're asking about, the main character of this whole operation πŸ‘‘
  • info β€” buffer to hold the result. this is where the answer lands, so like… make sure it's valid, bestie πŸ’…

✨ RETURN ✨

zero on success, non-zero otherwise. literally that's it. zero = slay, non-zero = something's off 😭


🌈 SEE ALSO 🌈

follow these links, iykyk πŸ§šβ€β™€οΈπŸ’œ β€” they're all in the Kernel file ./include/linux/ethtool.h:


ok that's the whole page, no filler, we ate and left no crumbs πŸ“πŸ”₯

and finally, bestie, the receipts 🫢: this one lives in ./include/linux, it's dated October 2026, and it's filed under ethtool_get_...nfo_by_layer(9) β€” mwah, see you in the next manpage πŸ’‹πŸ’…

πŸ“¦ where this page comes from