STRUCT BATADV_HASHTABLE(9)
π struct batadv_hashtable(9) π
okay so bestie, welcome to the Kernel API Manual page for struct batadv_hashtable(9) β yes that's the whole title, yes it's a mouthful, no we are not shortening it, iykyk π«Ά
β¨ NAME β¨
struct batadv_hashtable β a wrapper of a simple hlist based hashtable. that's it, that's the vibe: it's the little cozy shell around a hashtable, no cap π
πΈ SYNOPSIS πΈ
struct batadv_hashtable {
struct hlist_head *table;
spinlock_t *list_locks;
u32 size;
atomic_t generation;
};
like, look at her. four members, zero drama, main character energy π
π¦ Members π¦
tableβ the hashtable itself, with the buckets. the actual buckets, the place where things live πͺ£list_locksβ a spinlock for each hash list entry. one lock per entry, keeping everything from getting messy β¨sizeβ size of the hashtable, obviously. she's au32, she knows her measurements πgenerationβ the current (generation) sequence number. it's anatomic_t, so she's tracking generations atomically, periodt π₯
π SEE ALSO π
- the kernel file
./net/batman-adv/hash.hβ go read it, fr fr batadv_hashdata_compare_cb(9)batadv_hashdata_choose_cb(9)batadv_hashdata_free_cb(9)batadv_hash_add(9)batadv_hash_remove(9)
and that's the page, bestie π§ from ./net/batman-adv, dated October 2026 β she's an icon, she's a legend, and she is the moment. mwah πππ
π¦ 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