batadv_v_gw_throughput_get(9)
π batadv_v_gw_throughput_get(9) π
okay so bestie, welcome to the Kernel API Manual β yes, the actual serious kernel docs, but make it cute. this page is all about batadv_v_gw_throughput_get, which is a whole function that pulls the GW-bandwidth for a given GW. it's giving "small function, big job" energy and honestly? we stan. π
β¨ NAME β¨
batadv_v_gw_throughput_get β retrieve the GW-bandwidth for a given GW π
okay so the name literally tells you everything: you got a GW, you want its bandwidth number, and this function gets it. no cap. π
πΈ SYNOPSIS πΈ
int batadv_v_gw_throughput_get (struct batadv_gw_node *gw_node , u32 *bw
);
it hands you back an int, takes a struct batadv_gw_node * and a u32 *, and that's the whole vibe check. β¨
π¦ ARGUMENTS π¦
gw_nodeβ the GW you wanna retrieve the metric for. this is your main character right here. πbwβ the pointer where the metric will be stored. and the metric is computed as the minimum between the GW advertised throughput and the path throughput to it in the mesh. so like, it's the shy one of the two numbers β whichever is smaller wins. π₯Ί
ngl that minimum thing is important β it's not just the advertised number, it's also limited by the actual path throughput to that GW in the mesh. fr fr.
π RETURN π
0on success π-1on failure π
that's it. no in-between, no drama, just a classic zero-or-minus-one situation. periodt. π
π SEE ALSO π
bestie this list is long and it's all the batman-adv bat_v family, so buckle up β every single one of these is a sibling of this function and they all live in the kernel file ./net/batman-adv/bat_v.c:
batadv_v_iface_activate(9)batadv_v_iface_enable(9)batadv_v_iface_disable(9)batadv_v_primary_iface_set(9)batadv_v_iface_update_mac(9)batadv_v_hardif_neigh_init(9)batadv_v_neigh_dump_neigh(9)batadv_v_neigh_dump_hardif(9)batadv_v_neigh_dump(9)batadv_v_orig_dump_subentry(9)batadv_v_orig_dump_entry(9)batadv_v_orig_dump_bucket(9)batadv_v_orig_dump(9)batadv_v_neigh_cmp(9)batadv_v_neigh_is_sob(9)batadv_v_init_sel_class(9)batadv_v_gw_get_best_gw_node(9)batadv_v_gw_is_eligible(9)batadv_v_gw_dump_entry(9)batadv_v_gw_dump(9)batadv_v_hardif_init(9)batadv_v_mesh_init(9)batadv_v_mesh_free(9)batadv_v_init(9)batadv_v_deinit(9)
like, the whole friend group showed up to the function party. iykyk. π«Ά
π§ sign-off π§
so that's the tea, bestie β this page comes to you straight from ./net/batman-adv, dated October 2026, and it's filed under batadv_v_gw_throughput_get(9). go forth and get those gateway throughputs, you absolute icon. slay. ππ₯
π¦ 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