batadv_gw_ge...cted_gw_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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
  • NULL on errors 😭 β€” because sometimes the universe says no

🧚 SEE ALSO 🧚

Kernel file ./net/batman-adv/gateway_client.c, plus the whole friend group:


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