atl2_change_mtu(9)
π atl2_change_mtu β like, the MTU glow-up function (kernel API manual, bestie)
okay so this is atl2_change_mtu(9) from the Kernel API Manual and honestly? it's a little one, but she's iconic. it's giving "small function, big responsibilities" β¨
πΈ SYNOPSIS πΈ
int atl2_change_mtu (struct net_device *netdev , int new_mtu );
that's the whole vibe. returns an int, takes two args, slays. π
π«Ά ARGUMENTS π«Ά
netdevβ the network interface device structure, aka the whole entire device, bestie. this is the main character of the operation πnew_mtuβ the new value for the maximum frame size. yes, that's what we're changing. that's literally the assignment π
π₯ DESCRIPTION π₯
so what does she actually do? returns 0 on success, and a negative value on failure. that's it. that's the whole description. no cap. π§
lowkey obsessed with how the docs just say that and dip, but fr fr that's all there is β success gets you a 0, failure gets you something negative, and that's the tea β
π¦ SEE ALSO π¦
the whole atl2 friend group, in kernel file ./drivers/net/ethernet/atheros/atlx/atl2.c:
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_close(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)
like, go read her sisters too, iykyk π
π the cute lil sign-off π
this page came from ./drivers/net/ethernet/atheros... and it's dated October 2026 β so bestie, screenshot it, cite it, and remember: atl2_change_mtu(9), periodt. ππ
π¦ 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