batadv_dat_entry_hash_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_dat_entry_hash_find β€” a Kernel API Manual moment

okay so bestie, welcome to the batadv_dat_entry_hash_find page πŸ’– this one lives in the Kernel API Manual, and it's literally the "where's my dat_entry" function. no cap.


✨ NAME ✨

batadv_dat_entry_hash_find β€” look for a given dat_entry in the local hash table πŸ¦‹

like, that's it. that's the whole job. you hand it a key, it goes digging in the local hash table, and it either comes back with your entry or with NULL and a vibe check failure 😭


🌸 SYNOPSIS 🌸

struct batadv_dat_entry * batadv_dat_entry_hash_find (struct batadv_priv
*bat_priv , __be32 ip , unsigned short vid );

she's a three-argument girlie and she returns a struct batadv_dat_entry *. periodt. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information 🫢 this is the big bag of mesh-interface lore, all the context she needs to even start looking
  • ip β€” search key πŸ”‘ this is the thing you're hunting for, an __be32, so yeah, big-endian, don't come at her with host byte order
  • vid β€” VLAN identifier 🏷️ the VLAN you're poking around in

⭐ RETURN ⭐

the dat_entry if found, NULL otherwise. that's the whole deal πŸ’€

like β€” found it? you get the struct batadv_dat_entry *. not found? NULL. no dramatic monologue, no extra error code, just the facts, fr fr.

ngl bestie, always check for NULL before you dereference, that's just basic main character energy 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

she does NOT roll alone, and the list is iconic and also extremely long, so buckle up 🧚

Kernel file ./net/batman-adv/distributed-arp-table.c, plus:

that's the whole crew. go read them. iykyk πŸ”₯


okay that's the page!! πŸ’œ this one came from the kernel file ./net/batman-adv, and the version vibes say October 2026 β€” so yeah, mark your calendar bestie, this manual page is time-travelling from the future βœ¨πŸŽ€ also yes, the page is literally called batadv_dat_entry_hash_find(9), lowercase-and-proud, no notes πŸ‘‘πŸ«Ά

πŸ“¦ where this page comes from