batadv_neigh_ifinfo_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to batadv_neigh_ifinfo_new(9) from the Kernel API Manual β€” yes we're in kernel land and we're gonna be so normal about it. This function is here to search and possibly create a neigh_ifinfo object. That's the whole vibe: look for it, and if it's not there, make it happen. πŸ’…

✨ SYNOPSIS ✨

struct batadv_neigh_ifinfo * batadv_neigh_ifinfo_new (struct
batadv_neigh_node *neigh , struct batadv_hard_iface *if_outgoing );

πŸŽ€ ARGUMENTS πŸŽ€

  • neigh β€” the neigh node you're querying, bestie.
  • if_outgoing β€” the interface for which the ifinfo should be acquired.

πŸ”₯ RETURN πŸ”₯

If it fails, you get NULL 😭 β€” no cap. Otherwise you get the neigh_ifinfo object for the if_outgoing interface. And if that object didn't already exist? It gets created and added to the list, periodt. ✨

πŸ’– DESCRIPTION πŸ’–

The object is returned with its refcounter increased by 1. That's the important little detail β€” the refcounter goes up by one, so don't forget it. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./net/batman-adv/originator.c β€” and the whole friend group is 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_node_get(9), batadv_hardif_neigh_create(9), batadv_hardif_neigh_get_or_create(9), batadv_hardif_neigh_get(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).

xoxo πŸ’‹ this page is sourced from ./net/batman-adv and dated October 2026 β€” bye bestie, go bump that refcounter responsibly 🫢

πŸ“¦ where this page comes from