batadv_tvlv_container_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_tvlv_container_get

okay so bestie, welcome to the batadv_tvlv_container_get(9) page from the Kernel API Manual β€” this is the function that goes digging through the tvlv container list and pulls out the one container matching the type and version you asked for (both have to match, no partial credit, it's giving strict queen energy ✨).


✨ SYNOPSIS ✨

struct batadv_tvlv_container * batadv_tvlv_container_get (struct
batadv_priv *bat_priv , u8 type , u8 version );

like, that's the whole signature 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv holding literally all the mesh interface info, the main character struct of the whole operation πŸ‘‘
  • type β€” the tvlv container type you're hunting for, the vibe you're checking πŸ”
  • version β€” the tvlv container version you're hunting for, because type alone is not enough, bestie, we need the exact match πŸ’…

🌸 DESCRIPTION 🌸

Has to be called with the appropriate locks being acquired (tvlv.container_list_lock).

no cap, this one matters β€” acquire tvlv.container_list_lock first or you're asking for chaos 😭 the manpage says "appropriate locks" and it means it fr fr

πŸ¦‹ RETURN πŸ¦‹

the tvlv container if found, or NULL otherwise. that's it, that's the whole mood 🫢


🌈 SEE ALSO 🌈

the whole tvlv friend group, all linked from the Kernel file ./net/batman-adv/tvlv.c:


okay that's the whole page, mwah πŸ’– this lil slice of kernel API manual lives under ./net/batman-adv, dated October 2026, and it will forever be known as batadv_tvlv_container_get(9) β€” periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from