batadv_tp_list_active(9)
π batadv_tp_list_active β kernel API manual, bestie edition β¨
okay so picture this: you're deep in the batman-adv mesh stack, you've got a tp_meter thing going on, and you just need to know β is there already a session happening with this one specific endpoint? that's literally this function. it's the vibe check for throughput-meter sessions. π«Ά
πΈ NAME πΈ
batadv_tp_list_active β check if session from/to destination is ongoing β¨
like, no cap, that's the whole job: peek at the list, see if a session with a given destination is already out there living its main character life.
π SYNOPSIS π
bool batadv_tp_list_active (struct batadv_priv *bat_priv , const u8 *dst
);
note the return type bestie β it's a bool, so it's giving yes/no energy, not "here's a whole object" energy. π
π¦ ARGUMENTS π¦
bat_privβ the bat priv with all the mesh interface information. it's the big container of everything the mesh interface knows about itself. your starting point, your home base, the girlypop of structs. πdstβ the other endpoint MAC address to look for. so like, the address you're curious about. the one you want to match against.const u8 *, so you're just reading it, not touching it β respectful. π
β RETURN β
trueβ a matching session withdstwas found π slay, it's activefalseβ otherwise π no match, nothing ongoing
that's it, that's the whole return contract. no error codes, no negative numbers, just a clean yes or no. periodt. π
π SEE ALSO π
okay this list is LONG and honestly iconic, so buckle up β every single one of these, exactly as written, no skipping:
- Kernel file
./net/batman-adv/tp_meter.c 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_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_wait_available(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)
likeβ¦ the senders AND the receivers AND the ack handling AND the timers?? the whole friend group showed up. iykyk. π₯
tiny reminder bestie: this page is the kernel API manual forbatadv_tp_list_active, dated October 2026, and it lives in./net/batman-adv. that's the whole source/version situation β go off. π§
okay bye, mwah ππ
π¦ 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