batadv_tvlv_container_get(9)
π 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:
batadv_tvlv_handler_release(9)batadv_tvlv_handler_put(9)batadv_tvlv_handler_get(9)batadv_tvlv_container_release(9)batadv_tvlv_container_put(9)batadv_tvlv_container_list_size(9)batadv_tvlv_container_remove(9)batadv_tvlv_container_unregister(9)batadv_tvlv_container_register(9)batadv_tvlv_realloc_packet_buff(9)batadv_tvlv_container_ogm_append(9)batadv_tvlv_call_handler(9)batadv_tvlv_hdr_next(9)batadv_tvlv_containers_contain(9)batadv_tvlv_containers_process(9)batadv_tvlv_ogm_receive(9)batadv_tvlv_handler_register(9)batadv_tvlv_handler_unregister(9)batadv_tvlv_unicast_send(9)
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
- 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