batadv_orig_hash_find(9)
π 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 aconst 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)NULLon 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:
batadv_compare_orig(9)batadv_orig_node_vlan_get(9)batadv_vlan_id_valid(9)batadv_orig_node_vlan_new(9)batadv_orig_node_vlan_release(9)batadv_originator_init(9)batadv_neigh_ifinfo_release(9)batadv_hardif_neigh_release(9)batadv_neigh_node_release(9)batadv_orig_router_get(9)batadv_orig_to_router(9)batadv_orig_ifinfo_get(9)batadv_orig_ifinfo_new(9)batadv_neigh_ifinfo_get(9)batadv_neigh_ifinfo_new(9)batadv_neigh_node_get(9)batadv_hardif_neigh_create(9)batadv_hardif_neigh_get_or_create(9)batadv_hardif_neigh_get(9)batadv_neigh_node_create(9)batadv_neigh_node_get_or_create(9)batadv_hardif_neigh_dump(9)batadv_orig_ifinfo_release(9)batadv_orig_node_free_rcu(9)batadv_orig_node_release(9)batadv_originator_free(9)batadv_orig_node_new(9)batadv_purge_neigh_ifinfo(9)batadv_purge_orig_ifinfo(9)batadv_purge_orig_neighbors(9)batadv_find_best_neighbor(9)batadv_purge_orig_node(9)batadv_purge_orig_ref(9)batadv_purge_orig(9)batadv_orig_dump(9)
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
- 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