batadv_hash_dat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_hash_dat β€” like, the manual page, bestie

okay so picture this: it's the Kernel API Manual, it's batadv_hash_dat(9), and it's literally the little function that figures out which bucket your IP address belongs in. main character energy for a hash function, honestly.


✨ NAME ✨

batadv_hash_dat β€” compute the hash value for an IP address πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

u32 batadv_hash_dat (const void *data , u32 size );

🌸 ARGUMENTS 🌸

  • data β€” the data to hash, bestie. that's the thing going into the blender πŸ“
  • size β€” size of the hash table. yes it matters, no you can't skip it πŸ’…

⭐ RETURN ⭐

the selected index in the hash table for the given data. that's it, that's the whole vibe β€” you hand it stuff, it hands you back a number, no cap ✨

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./net/batman-adv/distributed-arp-table.c, and here's the whole friend group 🫢:


and that's the whole page, periodt πŸ’œ go hash something and slay 🌈

signing off from ./net/batman-adv β€” October 2026 edition, brought to you by the Kernel API Manual. mwah πŸŽ€πŸ’–

πŸ“¦ where this page comes from