arc_emac_stats(9)
okay bestie π welcome to the arc_emac_stats(9) page from the Kernel API Manual β we're doing kernel networking statistics today and it's lowkey iconic. This is the function that hands you the system network statistics address, and yes, every detail is staying, no cap.
πΈ NAME πΈ
arc_emac_stats β Get system network statistics. That's the whole name, bestie; it's giving "stats girlie" and we love that for us. π
β¨ SYNOPSIS β¨
here's the exact signature, character for character π«Ά:
struct net_device_stats * arc_emac_stats (struct net_device *ndev );
π«Ά ARGUMENTS π«Ά
ndevβ pointer to thenet_devicestructure. That's it. That's the argument. π
π¦ DESCRIPTION π¦
so what does it actually do? It returns the address of the device statistics structure β literally, that's the vibe. π
and the statistics are updated in the interrupt handler, so that's where the magic happens. π₯
π SEE ALSO π
Kernel file ./drivers/net/ethernet/arc/emac_main.c β and here's the whole friend group, every single reference, no skips:
arc_emac_tx_avail(9)arc_emac_adjust_link(9)arc_emac_get_drvinfo(9)arc_emac_tx_clean(9)arc_emac_rx(9)arc_emac_rx_miss_handle(9)arc_emac_rx_stall_check(9)arc_emac_poll(9)arc_emac_intr(9)arc_emac_open(9)arc_emac_set_rx_mode(9)arc_free_tx_queue(9)arc_free_rx_queue(9)arc_emac_stop(9)arc_emac_tx(9)arc_emac_set_address(9)arc_emac_restart(9)
byeeee π source/version: ./drivers/net/ethernet/arc β’ date: October 2026 β’ manual: arc_emac_stats(9) β stay slay, kernel bestie πβ¨
π¦ 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