batadv_tp_list_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with dst was found πŸŽ‰ slay, it's active
  • false β€” 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:

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 for batadv_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