batadv_hashdata_choose_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


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