batadv_choose_orig(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_choose_orig(9) β€” like, the Kernel API Manual edition πŸŽ€

okay bestie, gather round, because this one is a tiny little function with main character energy and it lives in the Kernel API Manual. her whole job? she looks at a MAC address and tells you which bucket in the hash table it belongs in. that's it. that's the whole vibe. and honestly? iconic. ✨


🌸 NAME 🌸

batadv_choose_orig β€” returns the index of the orig entry in the hash table πŸ¦‹


✨ SYNOPSIS ✨

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

πŸŽ€ ARGUMENTS πŸŽ€

  • data β€” the MAC address of the originator node 🧚 (yes, it's a const void *, no she's not going to explain herself)
  • size β€” the size of the hash table πŸ’«

πŸ”₯ RETURN πŸ”₯

the hash index where the object represented by data should be stored at. literally that's the whole point of her. slay. πŸ‘‘

ngl bestie, don't sleep on this one β€” if you feed her the wrong size, the index she hands back is gonna be off and your whole hash table situation gets messy. she's not judging, she's just saying. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./net/batman-adv/originator.h, plus the whole put-put-put friend group who all live together and lowkey all do the same "drop a reference" thing:

they're all linked in the same header, iykyk πŸ’œ


okay that's the whole page, bestie β€” written by the crew over in ./net/batman-adv, dated October 2026, and yes the footer really does just say batadv_choose_orig(9) again because she's consistent like that πŸ’–πŸ«Άβ­

πŸ“¦ where this page comes from