emac_dev_getnetstats(9)
π emac_dev_getnetstats β like, the EMAC stats grabber, bestie
okay so this is a page from the Kernel API Manual (that's the manual name, putting it up top so you're not lost π«Ά) and it's all about one lil function that pulls network statistics out of a DaVinci EMAC adapter. Let's get into it β¨
β¨ NAME β¨
emac_dev_getnetstats β the EMAC get-statistics function, no cap π
πΈ SYNOPSIS πΈ
struct net_device_stats * emac_dev_getnetstats (struct net_device *ndev
);
like yes, that's the whole signature, she's not complicated π
π ARGUMENTS π
ndevβ bestie this is literally the DaVinci EMAC network adapter. that's the one. the adapter in question. π¦
π DESCRIPTION π
So this gets called whenever the system is like "hey, give me the stats from this device" π β that's the whole vibe check.
And then we hand the statistics back inside a net_device_stats structure, pulled straight from emac. that's it, that's the whole function, she ate and left no crumbs π
π₯ SEE ALSO π₯
First up, the kernel file herself:
./drivers/net/ethernet/ti/davinci_emac.c
and then the whole friend group, all of them, not skipping a single one π€:
emac_get_drvinfo(9)emac_get_coalesce(9)emac_set_coalesce(9)emac_update_phystatus(9)hash_get(9)emac_hash_add(9)emac_hash_del(9)emac_add_mcast(9)emac_dev_mcast_set(9)emac_int_disable(9)emac_int_enable(9)emac_irq(9)emac_dev_xmit(9)emac_dev_tx_timeout(9)emac_set_type0addr(9)emac_set_type1addr(9)emac_set_type2addr(9)emac_setmac(9)emac_dev_setmac_addr(9)emac_hw_enable(9)emac_poll(9)emac_poll_controller(9)emac_devioctl(9)emac_dev_open(9)emac_dev_stop(9)davinci_emac_probe(9)davinci_emac_remove(9)davinci_emac_init(9)davinci_emac_exit(9)
and that's the page, bestie!! mwah π this one lives over in <code>./drivers/net/ethernet/ti</code> and it's dated <strong>October 2026</strong> β so yeah, she's from the future, iconic behavior honestly πβ¨
π¦ 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