batadv_gw_node_get(9)
π batadv_gw_node_get(9)
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function from the batman-adv kernel world and honestly it's giving "small but crucial" β it's literally the vibe check that finds your gateway node π
πΈ NAME πΈ
batadv_gw_node_get β retrieve gateway node from list of available gateways π¦
Like, that's the whole job. Find the gateway node. From the list. Of available gateways. Iconic, no notes π
β¨ SYNOPSIS β¨
struct batadv_gw_node * batadv_gw_node_get (struct batadv_priv *bat_priv
, struct batadv_orig_node *orig_node );
so you call it with two things and it hands you back a struct batadv_gw_node * π«Ά
π ARGUMENTS π
bat_privβ the bat priv with all the mesh interface information π this is the main character struct that's holding everything about your mesh interface, lowkey a lot of responsibility nglorig_nodeβ originator announcing gateway capabilities π this is the homie out here telling everyone it can do gateway things
β RETURN β
gateway node if found or NULL otherwise π
so either you get your gateway node, or you get NULL and have to deal with it. fr fr always check, don't just assume π
π¦ SEE ALSO π¦
Kernel file ./net/batman-adv/gateway_client.c β and here's the whole friend group, no cap:
batadv_gw_node_release(9)batadv_gw_get_selected_gw_node(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_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)
like, go read those too if you wanna understand the full gateway lore π§β¨
π that's the page bestie, go get that gateway node π
this lil baddie lives in ./net/batman-adv, dated October 2026, and it's known far and wide as batadv_gw_node_get(9) π slay π
π¦ 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