dev_get_tstats64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dev_get_tstats64(9) πŸ’–

from the Kernel API Manual, and honestly? iconic. This is the ndo_get_stats64 implementation page, bestie β€” let's get into it ✨


✨ NAME ✨

dev_get_tstats64 β€” the ndo_get_stats64 implementation, periodt πŸ’…

🌸 SYNOPSIS 🌸

void dev_get_tstats64 (struct net_device *dev , struct rtnl_link_stats64
       *s );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to get statistics from πŸ‘‘
  • s β€” the place to store stats, no cap 🫢

πŸ’… DESCRIPTION πŸ’…

okay so the whole job is literally this: populate s from dev->stats and dev->tstats. That's the vibe. It can be used as the ndo_get_stats64 callback. Slay πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’– β€” this little icon comes from ./net/core, dated October 2026, and yes, it's still dev_get_tstats64(9). bye bestie 🫢

πŸ“¦ where this page comes from