batadv_hardif_neigh_get(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– 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 base
  • neigh_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:

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