batadv_gw_select(9)
π 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 beNULLβ 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:
batadv_gw_node_release(9)batadv_gw_get_selected_gw_node(9)batadv_gw_get_selected_orig(9)batadv_gw_reselect(9)batadv_gw_check_client_stop(9)batadv_gw_election(9)batadv_gw_check_election(9)batadv_gw_node_add(9)batadv_gw_node_get(9)batadv_gw_node_update(9)batadv_gw_node_delete(9)batadv_gw_node_free(9)batadv_gw_dump(9)batadv_gw_dhcp_recipient_get(9)batadv_gw_out_of_range(9)
π«Ά 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
- 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