batadv_hardi...te_interface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ batadv_hardif_activate_interface β€” Kernel API Manual energy ✨

okay so bestie, welcome to the Kernel API Manual (that's the manual name, iykyk πŸŽ€), and today's main character is batadv_hardif_activate_interface(9). she's giving "glow up moment for a network interface" and honestly? obsessed. πŸ’…


✨ NAME ✨

batadv_hardif_activate_interface β€” move a hard interface to the active state πŸ¦‹

like, the whole point. she takes a hard interface that is not yet active and goes "bestie, you're UP now." periodt.


🌸 SYNOPSIS 🌸

void batadv_hardif_activate_interface (struct batadv_hard_iface *hard_iface );

no return value, no drama, just void and vibes ✨


πŸ’œ ARGUMENTS πŸ’œ

  • hard_iface β€” the interface that has come up πŸ’– this is the one getting the activation treatment, the whole reason we're here, the guest of honor 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea, and ngl it's a good one:

  • Activate an interface. that's the core move. she's up, she's live, she's in the active state ⭐
  • Select it as the primary interface if no primary is currently active β€” notice the "if", bestie, that conditional is doing WORK. if there's already a primary, this one does not steal the crown πŸ‘‘ (no primary = the new one gets the crown. periodt.)
  • Invoke the algorithm-specific activate hook. so each routing algorithm gets to run its own little activate situation. whatever the algorithm wants to do on activation, it does it here 🧚

and that's it! three things, all bangers, no filler. main character energy from start to finish πŸ’€βœ¨


πŸ’… SEE ALSO πŸ’…

okay so this is the extended friend group β€” everyone linked below is in the batadv cinematic universe (:3) and they all live in the kernel file ./net/batman-adv/hard-interface.c πŸ“

like, thirty-five whole siblings. a whole squad. the wifi_net_device ones are literally a friend group within the friend group 🌈


quick vibe check πŸŽ€: this page lives at ./net/batman-adv and it's dated October 2026, so she's from the future and she's thriving ✨

and that's the page, bestie β€” go activate something πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from