batadv_hardif_neigh_get(9)
๐ batadv_hardif_neigh_get ๐
okay so bestie, welcome to the <rainbow>Kernel API Manual</rainbow> page for batadv_hardif_neigh_get โ yes that's a lot of letters, no I will not be pronouncing it out loud ๐
it's a kernel function and it's iconic in its own lowkey way.
โจ NAME โจ
batadv_hardif_neigh_get โ retrieve a hardif neighbour from the list ๐ซถ
๐ธ SYNOPSIS ๐ธ
struct batadv_hardif_neigh_node * batadv_hardif_neigh_get (const struct
batadv_hard_iface *hard_iface , const u8 *neigh_addr );
like literally just two args and a return pointer, we love a clean signature โจ
๐ ARGUMENTS ๐
hard_ifaceโ the interface where this neighbour is connected to ๐ that's the spot, that's the home baseneigh_addrโ the address of the neighbour ๐ฎ so we know which one we're looking for
๐ฆ DESCRIPTION ๐ฆ
Looks for and possibly returns a neighbour belonging to this hard interface.
so it's a search ๐ต๏ธโโ๏ธ it goes looking, and possibly hands you back a neighbour that belongs to this hard interface. note the "possibly" โ she is not promising anything, and honestly? respect ๐
โญ RETURN โญ
neighbor when found. Otherwise NULL ๐ no neighbour, no pointer, just NULL and vibes.
fr fr keep an eye on that NULL case, bestie โ that's the whole vibe check right there.
๐ SEE ALSO ๐
Kernel file ./net/batman-adv/originator.c ๐๏ธ and the entire extended friend group:
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_neigh_node_get(9)batadv_hardif_neigh_create(9)batadv_hardif_neigh_get_or_create(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)
like, that is a whole squad ๐ read them, love them, link them.
mwah ๐ this has been your girl signing off โ page sourced from ./net/batman-adv, dated October 2026, and the manual name up top is the Kernel API Manual. go be a main character in the originator list now โจ
๐ฆ 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