batadv_gw_check_client_stop(9)
π batadv_gw_check_client_stop(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to batadv_gw_check_client_stop β it's a 9 section kernel API page, and yes we're gonna read it together, it's short, you'll be fine π«Ά
β¨ NAME β¨
batadv_gw_check_client_stop β literally just here to check if client mode has been switched off, that's the whole vibe check π
πΈ SYNOPSIS πΈ
void batadv_gw_check_client_stop (struct batadv_priv *bat_priv );
no return value, no drama, it just does the thing and leaves π
π ARGUMENTS π
bat_privβ the bat priv with all the mesh interface information, iykyk. it's the big struct holding everything about that mesh iface, and yes it's a pointer, obviously β¨
π¦ DESCRIPTION π¦
okay so here's the important part, and I need you to actually internalize this:
this function assumes the caller has already checked that the gw state is actually changing. read that again. the state is changing, that's the premise. this function is not supposed to be called when there is no state change β like, at all, don't do it, that's not its moment π©
so you don't call it "just to check", you call it because you already know something's shifting. it's giving "called at the right time only" energy, periodt.
π SEE ALSO π
kernel file ./net/batman-adv/gateway_client.c β that's where the whole gateway_client friend group lives, and honestly the gang is huge, so here's the full roll call π«Ά
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_election(9)batadv_gw_check_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)
like I said. the whole squad. 15 of them. no cap π
and that's the page!! sourced from ./net/batman-adv, dated October 2026, and it's literally titled batadv_gw_check_client_stop(9) so you can't miss it. go forth and only call this when the state is actually changing, bestie, I'm begging ππ
π¦ 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