batadv_hardi...te_interface(9)
π batadv_hardif_deactivate_interface(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the kernel docs, put your hair up, we're getting technical π
. This one is batadv_hardif_deactivate_interface (the header line lowkey truncates it as batadv_hardi...te_interface(9), she's just being dramatic, it's the same function).
β¨ NAME β¨
batadv_hardif_deactivate_interface β move a hard interface to the inactive state π«Ά
π¦ SYNOPSIS π¦
void batadv_hardif_deactivate_interface (struct batadv_hard_iface
*hard_iface );
literally just one arg, no return value, we love a void function that minds her own business β¨
π ARGUMENTS π
hard_ifaceβ the interface that went down π poor thing. this is the hard iface we're about to demote, okay bestie.
π DESCRIPTION π
So here's the vibe: this function demotes hard_iface to BATADV_IF_INACTIVE π₯ and then, because we're not messy, it recalculates the mesh minimum MTU based on the remaining active interfaces. that's it. that's the whole function. she's efficient, she's iconic, she's doing the math so the mesh stays valid π
ngl, the whole point is: one iface goes down β it stops counting as active β the mesh min MTU gets recomputed from whoever's left. no cap, that's the post-down cleanup energy we need β¨
π SEE ALSO π
okay this list is long long, but we don't skip, we don't cut, we list every single one because that's the assignment bestie π
. The kernel file is ./net/batman-adv/hard-interface.c, and the related functions are:
batadv_hardif_release(9)batadv_hardif_get_by_netdev(9)batadv_getlink_net(9)batadv_mutual_parents(9)batadv_is_on_batman_iface(9)batadv_is_valid_iface(9)__batadv_get_real_netdev(9)batadv_get_real_netdev(9)batadv_is_wext_netdev(9)batadv_is_cfg80211_netdev(9)batadv_wifi_flags_evaluate(9)batadv_netdev_get_wifi_flags(9)batadv_hardif_get_wifi_flags(9)batadv_is_wifi_hardif(9)batadv_hardif_no_broadcast(9)batadv_hardif_get_active(9)batadv_primary_if_update_addr(9)batadv_primary_if_select(9)batadv_hardif_is_iface_up(9)batadv_check_known_mac_addr(9)batadv_hardif_recalc_extra_skbroom(9)batadv_hardif_min_mtu(9)batadv_update_min_mtu(9)batadv_hardif_activate_interface(9)batadv_hardif_enable_interface(9)batadv_hardif_disable_interface(9)batadv_hard_if_event_meshif(9)batadv_wifi_net_device_insert(9)batadv_wifi_net_device_remove(9)batadv_wifi_net_device_update(9)batadv_wifi_net_device_unregister(9)batadv_wifi_net_device_event(9)batadv_hard_if_event(9)batadv_wifi_net_devices_init(9)batadv_wifi_net_devices_deinit(9)
like I said. long long. but she ate πΈ
and that's the whole page, bestie!! this little kernel-API moment lives in ./net/batman-adv, dated October 2026, and it's filed under section 9 of the manual β batadv_hardi...te_interface(9), no cap πβ¨π
π¦ 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