batadv_iv_og...h_get_tq_avg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_neigh_get_tq_avg β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so picture this: we're deep in the Kernel API Manual, right, and the star of the show is batadv_iv_ogm_neigh_get_tq_avg. yes that's a whole mouthful, no i will not be shortening it, it's iconic and it knows it ✨


🌸 NAME 🌸

batadv_iv_ogm_neigh_get_tq_avg β€” get the TQ average for a neighbour on a given outgoing interface. that's it. that's the whole vibe check πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_iv_ogm_neigh_get_tq_avg (struct batadv_neigh_node
*neigh_node , struct batadv_hard_iface *if_outgoing , u8 *tq_avg );

like look at that signature. she's got three params and a bool return, main character energy fr fr πŸ‘‘


✨ ARGUMENTS ✨

  • neigh_node β€” the neighbour of interest πŸ’« like, this one, the one we're being nosy about
  • if_outgoing β€” the outgoing interface of interest πŸ›°οΈ the specific path we're checking on
  • tq_avg β€” pointer of where to store the TQ average πŸ“ it's a u8 *, so it's literally pointing at where the answer goes. she's a storage pointer, she holds the goods

πŸ”₯ RETURN πŸ”₯

False if no average TQ available, otherwise true.

so basically: no average? False, sorry babe 😭. got one? true, slay πŸ’…. lowkey the most honest return value ever.


🌈 SEE ALSO 🌈

okay this is the part where the manpage goes absolutely feral and name-drops the entire neighbourhood. not me listing all of them, but also β€” every single one of these is required, so here we go, no skipping, periodt 🫢

like?? that's the whole friend group 😭 they all showed up to the party and honestly? respect.


πŸ’€ real talk though: batadv_iv_ogm_neigh_get_tq_avg returns False when there's simply no average TQ to hand you β€” that's not a bug, that's just her boundaries.

okay that's the page!! mwah πŸ’‹ this one lives at ./net/batman-adv, stamped October 2026, and it's literally titled batadv_iv_og...h_get_tq_avg(9) β€” yes the ellipsis is part of the name, don't come for her, she's been through enough πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from