batadv_iv_ogm_neigh_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_neigh_new β€” Kernel API Manual, section 9 πŸ¦‹

okay so bestie, gather round, because we're diving into the B.A.T.M.A.N. IV neighbour situation and honestly? it's giving main character energy. this is page batadv_iv_ogm_neigh_new(9) from the Kernel API Manual, and no cap, it's a little function with a big job. ✨


🌸 NAME 🌸

batadv_iv_ogm_neigh_new β€” retrieve or create a B.A.T.M.A.N. IV neighbour πŸ’–

like, it either finds you the neighbour you're looking for or it makes a whole new one. iconic behaviour honestly.


⭐ SYNOPSIS ⭐

struct batadv_neigh_node * batadv_iv_ogm_neigh_new (struct
batadv_hard_iface *hard_iface , const u8 *neigh_addr , struct
batadv_orig_node *orig_node );

that's the whole vibe. it hands you back a struct batadv_neigh_node *, and you take it from there. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • hard_iface β€” the interface where the neighbour is connected to. like, which doorway this neighbour actually came through. πŸšͺ
  • neigh_addr β€” the mac address of the neighbour. their literal identifying info, bestie. const u8 *, so don't you dare go changing it. πŸ™ˆ
  • orig_node β€” the originator object representing the neighbour. yes it's a whole object. we love an organised queen. πŸ‘‘

πŸ”₯ RETURN πŸ”₯

it gives you back a pointer to the neigh_node β€” or NULL in case of failure. 😭 so like, always check, okay? don't just assume it slayed.


🌈 SEE ALSO 🌈

the whole friend group, fr fr. every single one of these:


lowkey obsessed with how many of these there are. read them all, bestie, iykyk. πŸ’€

and that's the page!! mwah πŸ’‹ this cutie comes from ./net/batman-adv, dated October 2026, living under the Kernel API Manual banner as batadv_iv_ogm_neigh_new(9) β€” periodt. πŸ§šπŸ’œ

πŸ“¦ where this page comes from