batadv_hashdata_compare_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the hlist node 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 vibe
  • key β€” 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 match
  • false β€” nope, not equal, different elements, moving on πŸ’€

🌈 SEE ALSO 🌈

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