batadv_gw_ge...cted_gw_node(9)
π batadv_gw_ge...cted_gw_node(9) β Kernel API Manual β¨
okay bestie, welcome to the group chat π you're looking at the kernel API manual page for batadv_gw_ge...cted_gw_node(9) (yes the title is truncated with dots, that's just how the man page renders it, we don't make the rules). anyways, buckle in π
πΈ NAME πΈ
batadv_gw_get_selected_gw_node β Get currently selected gateway. that's it, that's the whole vibe. it gets you the gateway. the currently selected one. iconic behavior honestly π
β¨ SYNOPSIS β¨
struct batadv_gw_node * batadv_gw_get_selected_gw_node (struct
batadv_priv *bat_priv );
like literally just hand it the bat_priv and it hands you back a pointer, periodt π
π¦ ARGUMENTS π¦
bat_privβ the bat priv with all the mesh interface information. yes, all of it. every last crumb of mesh interface info lives in there π«Ά
π₯ RETURN π₯
- the selected gateway (with increased refcnt) π β and pls pls pls note the refcnt got bumped, so that reference is yours now, no cap
NULLon errors π β because sometimes the universe says no
π§ SEE ALSO π§
Kernel file ./net/batman-adv/gateway_client.c, plus the whole friend group:
batadv_gw_node_release(9)batadv_gw_get_selected_orig(9)batadv_gw_select(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)
anyway that's the whole page, you ate that read bestie π this came out of the kernel file at ./net/batman-adv, dated October 2026, and it's filed under the manual name batadv_gw_ge...cted_gw_node(9) β so if you ever need to find it again, iykyk πβ¨πΈ
π¦ 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