batadv_orig_hash_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_orig_hash_find(9)

okay so bestie, welcome to the batadv_orig_hash_find(9) page β€” it lives in the Kernel API Manual and it's honestly such a little icon. it does exactly one thing and it does it flawlessly: find and return originator from orig_hash. that's it. that's the whole vibe. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct batadv_orig_node * batadv_orig_hash_find (struct batadv_priv
*bat_priv , const void *data );

like, look at her. returns a struct batadv_orig_node *, takes two args. no notes. πŸ‘‘


🌸 ARGUMENTS 🌸

  • bat_priv β€” the bat priv with all the mesh interface information πŸ’– this is the big main-character struct, she's holding everything the mesh interface needs to know about itself.
  • data β€” mac address of the originator πŸŽ€ yes it's a const void *, yes that's giving mysterious, but it's a mac address, that's what goes in there.

⭐ RETURN ⭐

  • orig_node β€” with increased refcnt πŸ‘‘ (so like, you're holding a reference now, bestie, don't forget to release it, that's your responsibility)
  • NULL on errors 😭 (vibe check failed, it's not there, handle it)

🌈 SEE ALSO 🌈

so this part is a whole friend group. the kernel file ./net/batman-adv/originator.c and then, prepare yourself:

that's the whole group chat, bestie. every single one of them made it to the party πŸ’€πŸ«Ά


ngl, remember the refcnt thing. increased refcnt means increased refcnt. you got the node, now you're responsible for it. periodt. πŸ’…

and that's the page!! πŸŽ€ manual name was batadv_orig_hash_find(9), straight out of the Kernel API Manual, living in ./net/batman-adv, dated October 2026 β€” mwah, iconic, no cap πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from