atl1e_get_stats(9)
π 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:
- Kernel file:
./drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_irq_enable(9)atl1e_irq_disable(9)atl1e_irq_reset(9)atl1e_phy_config(9)atl1e_link_chg_task(9)atl1e_tx_timeout(9)atl1e_set_multi(9)atl1e_set_mac_addr(9)atl1e_change_mtu(9)atl1e_alloc_queues(9)atl1e_sw_init(9)atl1e_clean_tx_ring(9)atl1e_clean_rx_ring(9)atl1e_free_ring_resources(9)atl1e_setup_ring_resources(9)atl1e_configure(9)atl1e_intr(9)atl1e_clean(9)atl1e_open(9)atl1e_close(9)atl1e_probe(9)atl1e_remove(9)atl1e_io_error_detected(9)atl1e_io_slot_reset(9)atl1e_io_resume(9)
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
- 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