batadv_neigh_node_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ batadv_neigh_node_create(9) β€” the Kernel API Manual files πŸ’…

okay so bestie, we're in the Kernel API Manual today and this one's a little function from the batman-adv originator world. it's called batadv_neigh_node_create and honestly? it's giving "i make the friend object" energy. let's get into it ✨


🌸 NAME 🌸

batadv_neigh_node_create β€” create a neigh node object 🫢


⭐ SYNOPSIS ⭐

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

like, that's the whole signature. no cap, that's it πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • orig_node β€” the originator object that represents the neighbour πŸ’– like, this is who we're talking about, the main character of the neighbour situation.
  • hard_iface β€” the interface where the neighbour is connected to πŸ¦‹ i.e. the physical-ish doorway they came in through.
  • neigh_addr β€” the mac address of the neighbour interface 🌸 the literal address of the neighbour's face, basically.

πŸ’… DESCRIPTION πŸ’…

so what does it actually do? it allocates a new neigh_node object and initialises all the generic fields πŸ’« that's it, that's the job. it's a builder. it's a fresh-start queen. it hands you a shiny new neighbour node with all the boring generic bits already filled in πŸ‘‘


✨ RETURN ✨

it returns the neighbour node if it was found or created, or NULL otherwise 😭 so like... check it, bestie. don't just raw-dog that pointer. respect the NULL.


πŸ”₯ SEE ALSO πŸ”₯

the kernel file is over in ./net/batman-adv/originator.c and here's the whole friend group, no one left out πŸ’–


lowkey that's a big SEE ALSO list but every single one of them is living in ./net/batman-adv/originator.c and honestly? iconic behaviour. go read them. iykyk πŸ‘‘

and that's the page bestie!! brought to you by the <rainbow>./net/batman-adv</rainbow> gang, dated October 2026 🌈 mwah, go create some neighbour nodes responsibly πŸ’œ

πŸ“¦ where this page comes from