batadv_gw_check_election(9)
π 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 π±β¨
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_node_add(9)batadv_gw_node_get(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)
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
- 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