atl2_close(9)
π atl2_close β from the Kernel API Manual, bestie
okay so picture this: it's a manual page, it lives in the Kernel API Manual, and its whole name is atl2_close. Yes queen, we're talking about a real kernel function today. Let's go π
β¨ SYNOPSIS β¨
int atl2_close (struct net_device *netdev );
that's it. that's the whole vibe. one argument, one int return. iconic behavior honestly π¦
πΈ ARGUMENTS πΈ
netdevβ the network interface device structure. like, the actual net device we're about to put to sleep. she's the main character of this function π«Ά
π DESCRIPTION π
okay so first thing you need to know: this function returns 0, and that's not a typo, that's the whole point β it is not allowed to fail. periodt. no error path, no drama, just 0 π
so here's the lore. the close entry point gets called when an interface is de-activated by the OS. and like β the hardware is still under the driver's control at this point, she hasn't been abandoned, okay? she just needs to be disabled. π΄
so what do we do? we issue a global MAC reset to stop the hardware, and then we free all the transmit and receive resources. all of them. every last one. no cap π§Ήβ¨
like it's giving "closing up the shop" energy β lights off, MAC reset, resources returned, no loose ends. obsessed with the tidiness fr fr π₯
π¦ SEE ALSO π¦
okay bestie, here's the whole friend group, all of them live in the kernel file ./drivers/net/ethernet/atheros/atlx/atl2.c β go say hi π
atl2_sw_init(9)atl2_set_multi(9)atl2_configure(9)atl2_setup_ring_resources(9)atl2_irq_enable(9)atl2_irq_disable(9)atl2_intr(9)atl2_free_ring_resources(9)atl2_open(9)atl2_change_mtu(9)atl2_set_mac(9)atl2_tx_timeout(9)atl2_watchdog(9)atl2_phy_config(9)atl2_link_chg_task(9)atl2_probe(9)atl2_remove(9)atl2_check_options(9)
and that's the page π mwah. this little masterpiece comes to you from ./drivers/net/ethernet/atheros... and it's dated October 2026 β so yes, she's from the future, and she's still called atl2_close(9). 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