batadv_v_gw_...best_gw_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

batadv_v_gw_get_best_gw_node β€” retrieve the best GW node ✨

So bestie, this manual page is filed under the title batadv_v_gw_...best_gw_node(9), and it lives in the Kernel API Manual β€” yes, we're in kernel-docs territory now, hydrate accordingly 🫢


✨ SYNOPSIS ✨

struct batadv_gw_node * batadv_v_gw_get_best_gw_node (struct batadv_priv
*bat_priv );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information πŸ’– literally the whole mesh's info lives in here, no cap.

πŸ”₯ RETURN πŸ”₯

It hands you back the GW node having the best GW-metric, and honestly? Iconic behavior. πŸ‘‘

If no GW is known, you get NULL instead β€” so do a vibe check on that pointer before you dereference it, bestie 😭


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/batman-adv/bat_v.c β€” and the whole friend group it comes with:


Heads up bestie: that SEE ALSO crowd are all (9) kernel-API pages, so bring your whole brain to this study session 🧚✨

Ok that's the whole page, and that's on periodt πŸ’… Source/version: ./net/batman-adv 🌸 dated October 2026 β€” mwah, see u in the next manpage, love u, bye πŸŽ€πŸ’œ

πŸ“¦ where this page comes from