batadv_hashdata_compare_cb(9)
π batadv_hashdata_compare_cb(9) β like, the Kernel API Manual edition π
okay so bestie, gather round, because this one is short but it's literally the little bouncer at the door of every hash bucket in batman-adv β¨
β¨ NAME β¨
batadv_hashdata_compare_cb β the hash element comparison callback π¦
(yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic π )
πΈ SYNOPSIS πΈ
bool batadv_hashdata_compare_cb (const struct hlist_node *node , const
void *key );
π ARGUMENTS π
nodeβ thehlistnode of the element that's currently chillin' in the bucket π«Ά like it's already seated, it's already got its little spot, and now we're checking its vibekeyβ an opaque payload that we compare the node's key against π opaque meaning we do NOT peek inside, we do NOT ask questions, we just hand it over and let the callback do its thing π
π DESCRIPTION π
Compare a hash element by its keys. that's it. that's the whole job π§
it's giving "small but crucial" energy honestly β this is the callback that decides whether two elements are the same element, and everything downstream is gonna trust that answer π₯
β RETURN β
trueβ both elements are considered equal π slay, they matchfalseβ nope, not equal, different elements, moving on π
π SEE ALSO π
- Kernel file
./net/batman-adv/hash.hβ the whole file, the source of truth, go read it iykwys π batadv_hashdata_choose_cb(9)batadv_hashdata_free_cb(9)struct batadv_hashtable(9)batadv_hash_add(9)batadv_hash_remove(9)
like... the whole hash friend group honestly, they all show up together π
ngl if you got here looking for drama, there is none β just a boolean, two arguments, and zero cap π«Ά but every hash table in batman-adv is lowkey relying on this being correct, so, y'know. no pressure bestie π
and that's the page!! source/version is from ./net/batman-adv and it's dated October 2026 β mwah, go touch some hash buckets πππΈ
π¦ 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