emac_dev_stop(9)
π emac_dev_stop(9) β like, the EMAC device stop page, bestie π
okay so you're in the Kernel API Manual and you clicked on emac_dev_stop(9) β welcome, you're in exactly the right place, grab a strawberry π and let's go.
β¨ NAME β¨
emac_dev_stop β EMAC device stop. that's it, that's the vibe. it stops the EMAC device. π
πΈ SYNOPSIS πΈ
int emac_dev_stop (struct net_device *ndev );
literally one argument, one int back. clean. iconic. no notes. β¨
π¦ ARGUMENTS π¦
ndevβ the DaVinci EMAC network adapter, aka the whole main character of this function π«Ά
π₯ DESCRIPTION π₯
so bestie, this one gets called when the system wants to stop or down the interface. like, the interface said "i'm logging off" and this is the function that handles the goodbye π
here's the rundown of what we do on the way out:
- we stop the network queue π
- we disable interrupts β‘
- we cleanup TX/RX channels π§Ή
and then β plot twist β we return the statistics in the net_device_stats structure, pulled from emac. yes, we're returning stats on the way out. iykyk π
π SEE ALSO π
the whole extended friend group, fr fr β no cap, every single one:
- Kernel file
./drivers/net/ethernet/ti/davinci_emac.c 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_getnetstats(9),davinci_emac_probe(9),davinci_emac_remove(9),davinci_emac_init(9),davinci_emac_exit(9)
π that's the whole page, bestie β go forth and stop those devices responsibly. periodt.
sign-off szn: this little cutie lives in ./drivers/net/ethernet/ti and it's stamped October 2026 ππ¦ β mwah, bye!! π
π¦ 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