atl1e_get_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atl1e_get_stats β€” from the Kernel API Manual, bestie

okay so real talk, this one's a little cutie. it's atl1e_get_stats(9), it lives in the Kernel API Manual, and it's genuinely like... the chillest function on the whole Atheros squad. let me put you on 🫢


✨ NAME ✨

atl1e_get_stats β€” Get System Network Statistics 🌸

(no cap, that's literally the whole job. stats. network. system. iconic.)


⭐ SYNOPSIS ⭐

struct net_device_stats * atl1e_get_stats (struct net_device *netdev );

ok so it takes one arg and hands you back a pointer to a struct net_device_stats. that's the whole signature, periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • netdev β€” the network interface device structure, i.e. the actual NIC we're talking about. she's the main character here πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it returns the address of the device statistics structure. that's it. that's the vibe. you hand her a netdev, she hands you back a pointer to where the stats live ✨

BUT β€” and this is the part people always miss β€” the statistics themselves aren't updated in here. the counts get refreshed from the timer callback 😭 so this function is basically the friend who says "yeah the group doc is all up to date" and then someone else is actually the one editing it. she just points you at the stats. the timer does the real work, fr fr.

lowkey important: don't assume calling this gives you fresh numbers. you're getting a pointer, not a recount. the numbers are as current as whatever the timer callback last did πŸ•

🌈 SEE ALSO 🌈

and now the whole extended friend group, in order, exactly as listed:

like, that's the entire atl1e cinematic universe. go read some of them, iykyk πŸ“šπŸ’œ


okay that's the page!! mwah πŸ’– this one came from the source path ./drivers/net/ethernet/atheros... and it's dated October 2026, and the title up top is atl1e_get_stats(9) from the Kernel API Manual. go get those stats bestie, slay πŸŽ€βœ¨

πŸ“¦ where this page comes from