batadv_tp_wait_available(9)
π 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 rnplenβ size of the payload of a single message π¨ (yes it's asize_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:
BATADV_TP_DEF_TEST_LENGTH(9)BATADV_TP_AWND(9)BATADV_TP_RECV_TIMEOUT(9)BATADV_TP_MAX_RTO(9)BATADV_TP_FIRST_SEQ(9)BATADV_TP_PLEN(9)BATADV_TP_MAX_UNACKED(9)batadv_tp_session_cookie(9)batadv_tp_cwnd(9)batadv_tp_update_cwnd(9)batadv_tp_update_rto(9)batadv_tp_batctl_notify(9)batadv_tp_batctl_error_notify(9)batadv_tp_list_find_sender(9)batadv_tp_list_active(9)batadv_tp_list_find_sender_session(9)batadv_tp_sender_release(9)batadv_tp_sender_put(9)batadv_tp_list_detach(9)batadv_tp_sender_cleanup(9)batadv_tp_sender_end(9)batadv_tp_sender_shutdown(9)batadv_tp_sender_stopped(9)batadv_tp_sender_finish(9)batadv_tp_reset_sender_timer(9)batadv_tp_sender_timeout(9)batadv_tp_fill_prerandom(9)batadv_tp_send_msg(9)enum batadv_tp_ack_reaction(9)batadv_tp_handle_ack(9)batadv_tp_recv_ack(9)batadv_tp_avail(9)batadv_tp_send(9)batadv_tp_start_kthread(9)batadv_tp_start(9)batadv_tp_stop(9)batadv_tp_list_find_receiver_session(9)batadv_tp_receiver_release(9)batadv_tp_receiver_put(9)batadv_tp_reset_receiver_timer(9)batadv_tp_receiver_shutdown(9)batadv_tp_send_ack(9)batadv_tp_handle_out_of_order(9)batadv_tp_ack_unordered(9)batadv_tp_init_recv(9)batadv_tp_recv_msg(9)batadv_tp_meter_recv(9)batadv_tp_stop_all(9)batadv_tp_meter_init(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms