batadv_tp_li...nder_session(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ batadv_tp_list_find_sender_session(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual page for this lil lookup icon β€” no cap, it’s giving β€œfind the right sender session in the global list” energy. Let’s get into it. ✨


🌸 NAME 🌸

batadv_tp_list_find_sender_session β€” find the tp_vars sender session object in the global list. literally that’s the whole vibe. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

struct batadv_tp_sender * batadv_tp_list_find_sender_session (struct
batadv_priv *bat_priv , const u8 *dst , const u8 *session );

🫢 ARGUMENTS 🫢

  • bat_priv β€” the bat priv with all the mesh interface information. yes, all of it. πŸ’–
  • dst β€” the other endpoint MAC address to look for. it’s the β€œwho are we trying to match?” address. πŸ¦‹
  • session β€” session identifier. the session-y little key for the lookup. 🌸

πŸ’œ DESCRIPTION πŸ’œ

okay so the function goes looking for a tp_vars object where dst matches as end_point and session matches as the tp meter session. when it finds that match, it returns it after having increment the refcounter β€” so the refcounter goes up before it hands the object over. πŸ”₯

if there’s no match, it returns NULL. not found = NULL, bestie. that’s the rule. πŸ’€

reminder: the refcounter increment is part of the deal here β€” don’t forget it, iykyk. 🫢

⭐ RETURN ⭐

matching tp_vars object, or NULL when no tp_vars was found. simple, iconic, periodt. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

Kernel file: ./net/batman-adv/tp_meter.c β€” that’s the source file the page points at. 🌈

the whole squad of references:


πŸ’– that’s the page, bestie! source/version line: ./net/batman-adv Β· date: October 2026 Β· footer title: batadv_tp_li...nder_session(9) β€” periodt. πŸŽ€

πŸ“¦ where this page comes from