batadv_vlan_id_valid(9)
π batadv_vlan_id_valid β yes bestie, this is a kernel API manual page
okay so real talk, this is batadv_vlan_id_valid from the Kernel API Manual, and honestly? it's a little guy with one job and it does it flawlessly. no cap.
β¨ NAME β¨
batadv_vlan_id_valid β bestie, it literally just checks if the vlan id is in a valid batman-adv encoding π¦
πΈ SYNOPSIS πΈ
bool batadv_vlan_id_valid (unsigned short vid );
that's it. that's the whole function signature. short, sweet, iconic π
π ARGUMENTS π
vidβ the VLAN identifier π like, the actual vlan number you're asking about
β RETURN β
trueβ comes backtruewhen either no vlan is set or if the VLAN is in the correct range π«Ά slayfalseβ everything else, sorry babe, that's afalseπ
so yeah: no vlan at all = valid, on the money range = valid, otherwise = nope. not me being a straightforward little boolean π
π SEE ALSO π
the whole originator.c friend group, fr fr β this is the Kernel file ./net/batman-adv/originator.c crew and they all showed up to the function party:
batadv_orig_hash_find(9)batadv_compare_orig(9)batadv_orig_node_vlan_get(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_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)
like, that's the entire group chat in one SEE ALSO section and every single one of them is tagged (9) because they're all main character kernel functions, iykyk π
ngl bestie, this page is from./net/batman-advand it's dated October 2026 β so yeah, future vibes only π§ the whole thing lives under the Kernel API Manual alongsidebatadv_vlan_id_valid(9)itself, and honestly? obsessed. 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