batadv_hashdata_choose_cb(9)
π batadv_hashdata_choose_cb(9) β the Kernel API Manual, bestie edition π
okay so real talk, we're in the batadv_hashdata_choose_cb(9) page of the Kernel API Manual and it's literally the girl whose whole job is picking which hash bucket you go in. no cap, that's the vibe. she looks at your key, she looks at how many buckets there are, and she picks. main character energy honestly π
β¨ NAME β¨
batadv_hashdata_choose_cb β the hash bucket selection callback π¦
like yes, that's her title, and she's earned it.
π₯ SYNOPSIS π₯
u32 batadv_hashdata_choose_cb (const void *key , u32 size );
so you call her like that, with a key and a size, and she hands back a u32. simple. iconic. periodt π
π ARGUMENTS π
keyβ this one is an opaque payload whose key is the thing that actually selects the bucket. like it's not here to be understood, it's here to choose πΈsizeβ the number of buckets in the hash table. that's just how many buckets we're working with, bestie πͺ£
β RETURN β
she returns the bucket index, and it's derived from the key in key plus the table size. that's it. that's the whole answer. ate and left no crumbs π
π SEE ALSO π
- the Kernel file
./net/batman-adv/hash.h(iykyk π) batadv_hashdata_compare_cb(9)batadv_hashdata_free_cb(9)struct batadv_hashtable(9)batadv_hash_add(9)batadv_hash_remove(9)
bestie this page comes from ./net/batman-adv, dated October 2026 β that's the source, version and date all in one, and honestly? the way it signed off with the same title it opened withβ¦ consistent queen πβ¨π go read the actual header file now, ily π«Ά
π¦ 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