batadv_orig_node_vlan_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_orig_node_vlan_new(9) β€” the Kernel API Manual, bestie edition ✨

okay so picture this: you're deep in the Linux kernel, in the batman-adv corner of things, and you need a VLAN object for an originator. This is the batadv_orig_node_vlan_new(9) page from the Kernel API Manual, and it's literally going to find you one β€” or make you one. main character energy fr fr πŸŽ€


πŸ¦‹ NAME

batadv_orig_node_vlan_new β€” search (and possibly create, no big deal) an orig_node_vlan object πŸ’–


✨ SYNOPSIS

struct batadv_orig_node_vlan * batadv_orig_node_vlan_new (struct
batadv_orig_node *orig_node , unsigned short vid );

🌸 ARGUMENTS

  • orig_node β€” the originator that's serving the VLAN. like, the whole reason we're here 🫢
  • vid β€” the VLAN identifier. the vibe check number, if you will ✨

πŸŽ€ RETURN

So here's the tea:

  • NULL if it fails 😭 (failure happens, we don't talk about it)
  • otherwise? the vlan object identified by vid that belongs to orig_node πŸ’…

and if that object doesn't exist yet? bestie, it gets created and added to the list. we love a glow-up. πŸ”₯


πŸ‘‘ DESCRIPTION

The object comes back with its refcounter increased by 1. that's it, that's the whole thing β€” but it matters, okay? don't leak it. πŸ™ˆ


🌈 SEE ALSO

The kernel file ./net/batman-adv/originator.c plus this whole little friend group right here:

batadv_orig_hash_find(9), batadv_compare_orig(9), batadv_orig_node_vlan_get(9), batadv_vlan_id_valid(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_ifinfo_new(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)


ngl this list is giving "group chat with 35 members and every single one of them is unhinged in a different way" πŸ’€ but they're all icons, we stan.

kisses, bestie πŸ§šπŸ’œ β€” this page lives under ./net/batman-adv, dropped October 2026, and it's called batadv_orig_node_vlan_new(9). periodt. πŸ“

πŸ“¦ where this page comes from