batadv_gw_select(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

batadv_gw_select β€” bestie, this is the one that picks a brand-new currently active gateway ✨

So yeah, we're in the batadv_gw_select(9) page of the Kernel API Manual, and honestly? It's giving main character energy πŸ‘‘


🌸 SYNOPSIS 🌸

void batadv_gw_select (struct batadv_priv *bat_priv , struct
batadv_gw_node *new_gw_node );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv that's holding all the mesh interface information, like it's carrying everyone's bags fr fr πŸ‘œ
  • new_gw_node β€” the gateway node you're crowning as the current gateway πŸ‘‘ and yes, it may be NULL β€” that's allowed, no cap

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the vibe: this function atomically replaces the currently active gateway with new_gw_node, and then it drops the reference to the previous one. Swapsies, but make it atomic πŸ’« No messy half-states, no weird in-between era β€” one second it's the old gateway, next second it's the new one, periodt.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/batman-adv/gateway_client.c β€” and the whole friend group, obviously:


🫢 That's the whole page, bestie β€” go forth and select your gateway. Slay πŸ’…

Signed off with love from ./net/batman-adv, dated October 2026 🌈⭐ (yes the version/date is a whole aesthetic, don't @ me)

πŸ“¦ where this page comes from