batadv_gw_check_election(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_gw_check_election(9) β€” the Kernel API Manual, but make it cute

okay so bestie, we're in the Kernel API Manual today and the star of the show is batadv_gw_check_election β€” no cap, this is the function that checks whether an originator node is eligible and then, if it is, elects it as the best gateway. main character energy fr fr πŸ‘‘


✨ NAME ✨

batadv_gw_check_election β€” Elect orig node as best gateway when eligible πŸŽ€

Like, the whole vibe is: "hey, is this node gateway material? bet. then it's elected." 🌈


🌸 SYNOPSIS 🌸

void batadv_gw_check_election (struct batadv_priv *bat_priv , struct
       batadv_orig_node *orig_node );

Note the <italic>void</italic> bestie β€” this one doesn't hand anything back, it just does the thing and dips πŸ’¨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information 🫢 like, this is the big container that's holding all your mesh interface tea.
  • orig_node β€” the orig node which is to be checked πŸ‘€ this is the one standing in the doorway going "am I eligible?" and the function is the bouncer.

πŸ’– SEE ALSO πŸ’–

okay so the Kernel file ./net/batman-adv/gateway_client.c is the whole friend group here, and these are the siblings β€” go say hi to all of them, don't leave anyone on read πŸ“±βœ¨


bestie reminder: this page lives under ./net/batman-adv and it's dated October 2026 ⭐ β€” that's the source path and the date, both tucked into the sign-off, and honestly? iconic. πŸ§šβ€β™€οΈπŸ’œ slay, bye πŸ’…
πŸ“¦ where this page comes from