batadv_forw_..._bcasts_left(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_forw_..._bcasts_left(9) β€” the kernel API manual, but make it make sense

okay bestie, so this is a page from the Kernel API Manual, and the function we're stanning today is batadv_forw_..._bcasts_left(9). yes the name is a whole mouthful, we're gonna get through it together 🫢


✨ NAME ✨

batadv_forw_packet_bcasts_left β€” literally just checks if a retransmission is necessary. that's the whole gig. no cap πŸŽ€


🌸 SYNOPSIS 🌸

bool batadv_forw_packet_bcasts_left (struct batadv_forw_packet
*forw_packet );

like, she takes one thing and she returns a bool. simple. iconic. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • forw_packet β€” the forwarding packet you wanna check. that's it, that's the argument πŸ’–

⭐ DESCRIPTION ⭐

so what she does is: she checks whether a given packet has any (re)transmissions left on the provided interface. vibe check for retransmissions, basically πŸ”₯

and here's the tea β€” hard_iface may be NULL: in that case, the number of transmissions this skb had so far is compared with the maximum amount of retransmissions independent of any interface instead. so no interface, no problem, she just compares against the global max πŸ™ˆ

lowkey important: that hard_iface behaviour is straight from the manpage, so don't come for me if you pass something weird. it's giving "read the source" energy 😭

πŸ‘‘ RETURN πŸ‘‘

  • True β€” if (re)transmissions are left πŸŽ‰
  • false β€” otherwise πŸ’€

that's the whole return situation. binary queen. ⭐


🌈 SEE ALSO 🌈

okay this is the long part, grab a snack πŸ“ β€” all of these live in the kernel file ./net/batman-adv/send.c:

like I said β€” a lot of cousins. iykyk πŸ’œ


and that's the page bestie!! this one came from ./net/batman-adv, dated October 2026, and the manual name is batadv_forw_..._bcasts_left(9) in case you forgot already 😭 mwah, go read send.c πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from