batadv_neigh_node_get(9)
π batadv_neigh_node_get(9)
okay so this is a page from the Kernel API Manual β yes, that's the manual name, she's official π β and it's literally all about grabbing one (1) neighbour out of a list. bestie, let's get into it.
β¨ NAME β¨
batadv_neigh_node_get β retrieve a neighbour from the list π«Ά
πΈ SYNOPSIS πΈ
struct batadv_neigh_node * batadv_neigh_node_get (const struct
batadv_orig_node *orig_node , const struct batadv_hard_iface *hard_iface
, const u8 *addr );
like, that's the whole vibe check right there π
π ARGUMENTS π
orig_nodeβ the originator that this neighbour belongs to. it's giving "whose friend group are we even looking in" energy π¦hard_ifaceβ the interface this neighbour is connected through. the actual physical situation, no cap πaddrβ the address of the neighbour. yes, that address, the one you're hunting for π₯
π§ DESCRIPTION π§
so what it does: it goes looking β and possibly returns β a neighbour that belongs to this originator's list, the one connected through the hard interface you handed it. that's it, that's the plot. lowkey iconic for how focused it is πβ¨
π RETURN π
returns the neighbor when found. otherwise NULL π (yes, "neighbor" with no u, that's how the original spells it, respect the spelling fr fr)
π SEE ALSO π
Kernel file ./net/batman-adv/originator.c β and then a whole friend-group of functions that are all mutuals with this one:
batadv_orig_hash_find(9)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_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)
and that's the whole page, bestie, you ate that πβ¨ this masterpiece lives in ./net/batman-adv, it's dated October 2026, and it's filed under batadv_neigh_node_get(9) β go forth and find your neighbours ππ¦
π¦ 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