batadv_iv_g...best_gw_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the batadv_iv_g...best_gw_node(9) page from the Kernel API Manual πŸ’… this one is all about batadv_iv_gw_get_best_gw_node β€” and it literally retrieves the best gateway node based on the B.A.T.M.A.N. IV metric and the configured GW selection class. main character energy fr fr πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

the function signature is giving exactly this:

struct batadv_gw_node * batadv_iv_gw_get_best_gw_node (struct
batadv_priv *bat_priv );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information. that's the arg, bestie 🫢

πŸ’– RETURN πŸ’–

you get the gateway node with the highest score for the current selection class, or NULL if no eligible gateway exists. no cap 😭

🌈 SEE ALSO 🌈

the see-also section is a whole friend group β€” every single reference is here, no skips:

mwah πŸ’‹ β€” sign-off time: source/version is ./net/batman-adv, date is October 2026, and this iconic page is batadv_iv_g...best_gw_node(9). bye bestie, go pick the best gateway 🫢✨

πŸ“¦ where this page comes from