batadv_v_elp_get_throughput(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… batadv_v_elp_get_throughput(9) โ€” the Kernel API Manual page, bestie edition โœจ

okay so real talk, this is a page from the Kernel API Manual and it's about batadv_v_elp_get_throughput โ€” the little function that goes and fetches the throughput towards a neighbour. yes, that's the whole vibe. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

batadv_v_elp_get_throughput โ€” get the throughput towards a neighbour ๐Ÿ’ซ

like, literally what it says on the tin. you want the throughput, towards a neighbour, and this function is your girl.


โœจ SYNOPSIS โœจ

bool batadv_v_elp_get_throughput (struct batadv_hardif_neigh_node *neigh
, u32 *pthroughput );

that's it. that's the whole signature. she's a bool-returning icon and she ate ๐Ÿ’…


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • neigh โ€” the neighbour for which the throughput has to be obtained ๐Ÿฆ‹ like, the whole point of the call. this is the neighbour in question, no cap.
  • pthroughput โ€” calculated throughput towards the given neighbour, in multiples of 100kpbs. and yes bestie, the units have lore: a value of '1' equals 0.1Mbps, '10' equals 1Mbps, etc. so do the math accordingly, iykyk ๐Ÿงฎโœจ

๐Ÿ‘‘ RETURN ๐Ÿ‘‘

returns true when the value behind pthroughput was actually set. periodt. that's the vibe check โ€” true means your pointer got blessed with a real number ๐Ÿ’–


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

kernel file ./net/batman-adv/bat_v_elp.c, struct batadv_v_metric_queue_entry(9), and honestly the whole friend group:

go read them. they're all main character energy in their own way ๐Ÿ”ฅ


ngl, if pthroughput doesn't get set, you're getting a false back and that's your answer. no extra lore, no secret behaviour โ€” just check the return value, bestie ๐Ÿ™ˆ

that's the page!! source/version is ./net/batman-adv and the date on this beauty is October 2026 โ€” so like, future icon behaviour honestly ๐Ÿ’œ๐ŸŽ€ mwah, go read the rest of the manual, ily ๐Ÿซถ

๐Ÿ“ฆ where this page comes from