batadv_tvlv...er_list_size(9)
π batadv_tvlv...er_list_size(9)
okay so this is a page from the Kernel API Manual and bestie, it's a tiny little function but she's important π The full vibe name is batadv_tvlv...er_list_size(9) β yes the title is abbreviated like that, no that's not me being lazy, that's literally what the header says π«Ά
β¨ NAME β¨
batadv_tvlv_container_list_size β she calculates the size of the tvlv container list entries π
πΈ SYNOPSIS πΈ
size_t batadv_tvlv_container_list_size (struct batadv_priv *bat_priv );
π¦ ARGUMENTS π¦
bat_privβ the bat priv, aka the thing holding all the mesh interface information β¨ it's giving "main character data structure," iykyk
π DESCRIPTION π
So here's the tea: you have to call this with the appropriate locks being acquired β specifically tvlv.container_list_lock. No cap, no exceptions π Don't just wander in there unlocked, that's not the vibe.
fr fr, lock tvlv.container_list_lock first or don't come crying to me π
π RETURN π
The size of all currently registered tvlv containers β in bytes π that's the whole answer, she said what she said.
β SEE ALSO β
Kernel file ./net/batman-adv/tvlv.c and the whole friend group:
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_get(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, you ate that π this icon lives in ./net/batman-adv and the source/version date on her little footer is October 2026, page name batadv_tvlv...er_list_size(9) β mwah, 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