batadv_iv_gw_is_eligible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_gw_is_eligible β€” like, the gateway glow-up checker

okay so bestie, we're in the Kernel API Manual today (yes, the kernel, we're built different) and this little icon is batadv_iv_gw_is_eligible. Basically it's the function that decides whether your mesh network should break up with its current gateway and start seeing someone new. drama, but make it networking πŸ’…


✨ SYNOPSIS ✨

bool batadv_iv_gw_is_eligible (struct batadv_priv *bat_priv , struct
batadv_orig_node *curr_gw_orig , struct batadv_orig_node *orig_node );

it returns a bool, it takes three pointers, and it is literally the matchmaker of the batman-adv world 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv holding, like, all the mesh interface information. the main character of the structs πŸ’–
  • curr_gw_orig β€” originator of the currently selected gateway. the situationship we're currently in.
  • orig_node β€” originator of the gateway candidate. the new person who just walked in πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does is: it compares the TQ values of curr_gw_orig and orig_node, and it does that taking the configured gateway selection class into account. no cap, the selection class matters here β€” it's not just vibes, it's a real config thing ✨

that's it, that's the whole function. tiny but iconic πŸ‘‘


🌸 RETURN 🌸

it hands back true if orig_node should take over as the active gateway, and false otherwise.

so basically: true = go off queen, false = not today bestie πŸ™ˆ


🌈 SEE ALSO 🌈

this is a long list, and I'm not skipping a single one because every single reference deserves its moment. get comfy πŸ“

like I said. every single one. I counted, and you're welcome πŸ’€


and that's the whole page, bestie! it lives in ./net/batman-adv and this snapshot is dated October 2026 β€” same month, same kernel tree, same entry batadv_iv_gw_is_eligible(9). go forth and pick the right gateway, ily πŸ’œβœ¨

πŸ“¦ where this page comes from