batadv_hard...et_or_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

batadv_hardif_neigh_get_or_create β€” the function that goes "hiii do u already exist bestie?? no?? okay i'll make u then πŸ’–" and hands you back a hardif neighbour node ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct batadv_hardif_neigh_node * batadv_hardif_neigh_get_or_create
(struct batadv_hard_iface *hard_iface , const u8 *neigh_addr , struct
batadv_orig_node *orig_node );

🌸 ARGUMENTS 🌸

  • hard_iface β€” the interface this neighbour is connected to 🫢 like, whose house is this neighbour even at
  • neigh_addr β€” the interface address of the neighbour you're trying to retrieve πŸ‘€ the little name tag fr
  • orig_node β€” the originator object that represents the neighbour πŸ‘‘ the main character record for this whole situation

⭐ RETURN ⭐

You get back the hardif neighbour node β€” either the one that was already chilling there (found) or a fresh one (created) πŸ’– Or NULL otherwise, which is giving "it's not happening today" energy 😭


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./net/batman-adv/originator.c β€” and literally the entire friend group, no cap:


πŸ’€ ok that's the whole page bestie, go read the source, i believe in u 🫢

kisses, this was the Kernel API Manual entry for you, live from ./net/batman-adv, dated October 2026 πŸ§šβ€β™€οΈβœ¨πŸŽ€

πŸ“¦ where this page comes from