wx_get_stats64(9)
π wx_get_stats64(9) β from the Kernel API Manual, bestie β¨
okay so quick vibe check: this little icon lives in the Kernel API Manual, and it's the one that goes and grabs the system network statistics for you. no cap, that's the whole job. let's get into it π«Ά
πΈ NAME πΈ
wx_get_stats64 β literally just Get System Network Statistics. that's it. that's the girl. π
β¨ SYNOPSIS β¨
void wx_get_stats64 (struct net_device *netdev , struct
rtnl_link_stats64 *stats );
returns void, so she gives you nothing back directly β she fills in your stats and dips. iconic behaviour honestly π
π ARGUMENTS π
netdevβ the network interface device structure π¦ like, the actual NIC she's gonna read from.statsβ the storage space for 64bit statistics π this is where the numbers land, so make sure it's ready for them.
fr fr, stats is storage space β she's writing into it, not handing you a fresh one. just so we're clear π
π₯ SEE ALSO π₯
the kernel file this all lives in:
- Kernel file
./drivers/net/ethernet/wangxun/libwx/wx_lib.c
and the whole friend group, all in (9):
wx_alloc_rx_buffers(9)wx_is_non_eop(9)wx_cleanup_headers(9)wx_rx_checksum(9)wx_process_skb_fields(9)wx_clean_rx_irq(9)wx_clean_tx_irq(9)wx_poll(9)wx_set_rss_queues(9)wx_acquire_msix_vectors(9)wx_set_interrupt_capability(9)wx_cache_ring_rss(9)wx_alloc_q_vector(9)wx_free_q_vector(9)wx_alloc_q_vectors(9)wx_free_q_vectors(9)wx_clear_interrupt_scheme(9)wx_setup_isb_resources(9)wx_free_isb_resources(9)wx_set_ivar(9)wx_write_eitr(9)wx_configure_vectors(9)wx_clean_rx_ring(9)wx_clean_all_rx_rings(9)wx_free_rx_resources(9)wx_free_all_rx_resources(9)wx_clean_tx_ring(9)wx_clean_all_tx_rings(9)wx_free_tx_resources(9)wx_free_all_tx_resources(9)wx_setup_rx_resources(9)wx_setup_all_rx_resources(9)wx_setup_tx_resources(9)wx_setup_all_tx_resources(9)
and that's the whole page, bestie β go read the source, it's giving main character energy π
source/version: ./drivers/net/ethernet/wangxun... Β· dated October 2026 Β· and yes it's still wx_get_stats64(9) at the bottom π§
π¦ 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