batadv_choose_orig(9)
π 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 aconst 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:
batadv_orig_node_vlan_put(9)batadv_neigh_ifinfo_put(9)batadv_hardif_neigh_put(9)batadv_neigh_node_put(9)batadv_orig_ifinfo_put(9)batadv_orig_node_put(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms