batadv_orig_node_vlan_new(9)
π 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:
NULLif it fails π (failure happens, we don't talk about it)- otherwise? the vlan object identified by
vidthat belongs toorig_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms