batadv_interface_change_mtu(9)
π batadv_interface_change_mtu(9) β like, the kernel API manual, bestie
okay so real talk, this is a page from the Kernel API Manual and it's about batadv_interface_change_mtu β the function that handles changing the MTU of a mesh interface π¦ no cap, that's the whole vibe.
β¨ NAME β¨
batadv_interface_change_mtu β change the MTU of a mesh interface π
πΈ SYNOPSIS πΈ
int batadv_interface_change_mtu (struct net_device *dev , int new_mtu );
π ARGUMENTS π
devβ the mesh interface you're modifying π«Ά like, this is the thing getting its MTU changednew_mtuβ the brand new MTU value you're asking for β¨ literally the number you want
π DESCRIPTION π
So what it actually does: it validates that new_mtu fits inside the range that the configured hard interfaces actually support π₯ then it remembers it as the user-configured MTU πΎ periodt.
That's it β vibe check the number, then stash it. Simple. Iconic.
β RETURN β
0on success π-EINVALifnew_mtuis out of range π (out of range = rejected, no cap)
π SEE ALSO π
Kernel file ./net/batman-adv/mesh-interface.c plus this whole squad of friends:
batadv_skb_head_push(9)batadv_sum_counter(9)batadv_interface_stats(9)batadv_interface_set_mac_addr(9)batadv_interface_set_rx_mode(9)batadv_interface_tx(9)batadv_interface_rx(9)batadv_meshif_vlan_release(9)batadv_meshif_vlan_get(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(9)batadv_interface_add_vid(9)batadv_interface_kill_vid(9)batadv_set_lockdep_class_one(9)batadv_set_lockdep_class(9)batadv_meshif_init_late(9)batadv_meshif_slave_add(9)batadv_meshif_slave_del(9)batadv_get_drvinfo(9)batadv_get_strings(9)batadv_get_ethtool_stats(9)batadv_get_sset_count(9)batadv_meshif_free(9)batadv_meshif_init_early(9)batadv_meshif_validate(9)batadv_meshif_newlink(9)batadv_meshif_destroy_netlink(9)batadv_meshif_is_valid(9)
and that's the whole page, bestie π§π shoutout to ./net/batman-adv for keeping it real β dropped October 2026, filed under batadv_interface_change_mtu(9) π go read it again iykyk π
π¦ 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