batadv_hardi...te_interface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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