batadv_backbone_hash_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_backbone_hash_find β€” the Kernel API Manual page, but make it make sense ✨

okay so this is batadv_backbone_hash_find(9) from the Kernel API Manual, and bestie, it's a whole little function that goes digging in a hash table for you. Let's get into it 🫢


🌸 NAME 🌸

batadv_backbone_hash_find β€” literally just looks for a backbone gateway in the hash πŸ”

No cap, that's the whole job description.


✨ SYNOPSIS ✨

struct batadv_bla_backbone_gw * batadv_backbone_hash_find (struct
batadv_priv *bat_priv , const u8 *addr , unsigned short vid );

it's giving "give me three things and I'll give you a pointer (maybe)". πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv πŸ’– this is the one carrying all the mesh interface information, so like, the main character of the struct world.
  • addr β€” the address of the originator ✨ yes that address, the one you're hunting for.
  • vid β€” the VLAN ID 🌈 because nothing in networking is ever complete without a VLAN ID, apparently.

πŸ’… RETURN πŸ’…

backbone gateway if found, or NULL otherwise 🫠

that's it. that's the return value. found = a gateway, not found = NULL, and honestly the NULL case is the vibe check failing 😭


πŸ”₯ SEE ALSO πŸ”₯

first up, the source file you should absolutely go read:

  • Kernel file ./net/batman-adv/bridge_loop_avoidance.c πŸ“‚

and then the entire friend group 🧚 (yes, all of them, don't skip, iykwim):

like, that's the whole bridge_loop_avoidance extended universe and you will be reading it πŸ’€ (affectionate)


ngl, if you came here looking for flags or config options β€” there are none. this is a plain C function, bestie. options are for man pages of the userland variety πŸ™ˆ

and that's the page!! shipped from ./net/batman-adv, dated October 2026 β€” go forth and find those backbone gateways, you absolute icon πŸŒŸπŸ’œ

πŸ“¦ where this page comes from