batadv_v_gw_throughput_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–

  • 0 on success πŸŽ‰
  • -1 on 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:

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