batadv_tp_wait_available(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_tp_wait_available(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a little function from the batman-adv kernel world and honestly? it's giving "patient bestie waiting for her turn at the mirror" πŸͺžπŸ’…


🌸 NAME 🌸

batadv_tp_wait_available β€” literally just wait until the congestion window becomes free or the timeout is reached, no cap πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

int batadv_tp_wait_available (struct batadv_tp_sender *tp_vars , size_t
plen );

πŸŽ€ ARGUMENTS πŸŽ€

  • tp_vars β€” the private data of the current TP meter session 🫢 like, the little personal stash of info for the session you're working with rn
  • plen β€” size of the payload of a single message πŸ“¨ (yes it's a size_t, yes it matters)

⭐ RETURN ⭐

okay so the return values here are kind of a vibe check on how the wait ended, so pay attention bestie πŸ‘€

  • 0 β€” the condition evaluated to false after the timeout elapsed πŸ˜” (time ran out, still not free)
  • 1 β€” the condition evaluated to true after the timeout elapsed βœ… (time ran out, but it did become free)
  • the remaining jiffies (at least 1) β€” the condition evaluated to true before the timeout elapsed πŸ”₯ (iconic, early win, main character energy)
  • -ERESTARTSYS β€” it was interrupted by a signal 😭 rude, honestly

🌈 SEE ALSO 🌈

the whole friend group, fr fr πŸ‘‘ β€” first up, the kernel file ./net/batman-adv/tp_meter.c, and then all of these:


and that's the whole page, bestie πŸ’œ β€” sourced from ./net/batman-adv, version October 2026, and the page itself is batadv_tp_wait_available(9). go forth and wait on that congestion window like the icon you are πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from