batadv_meshif_vlan_get(9)
π batadv_meshif_vlan_get(9) π
okay bestie, welcome to the Kernel API Manual β¨ β yes we're literally in kernel land, and yes this one's a baddie.
β¨ NAME β¨
batadv_meshif_vlan_get β get the vlan object for a specific vid π
πΈ SYNOPSIS πΈ
struct batadv_meshif_vlan * batadv_meshif_vlan_get (struct batadv_priv
*bat_priv , unsigned short vid );
like, it takes a bat_priv and a vid and hands you back a struct batadv_meshif_vlan *. simple. iconic. no cap π
π¦ ARGUMENTS π¦
bat_privβ the bat priv with all the mesh interface information π«Ά this is the main character, it's holding everythingvidβ the identifier of the vlan object to retrieve π give it the vid, it finds the vlan, periodt
β RETURN β
the private data of the vlan matching the vid passed as argument, or NULL otherwise π (yes, NULL is a real possibility, be ready for it). and listen β the refcounter of the returned object is incremented by 1 π₯ so like, you own a reference now, don't just leave it lying around, that's not very slay of you.
π SEE ALSO π
Kernel file ./net/batman-adv/mesh-interface.c β plus the whole friend group:
batadv_skb_head_push(9)batadv_sum_counter(9)batadv_interface_stats(9)batadv_interface_set_mac_addr(9)batadv_interface_change_mtu(9)batadv_interface_set_rx_mode(9)batadv_interface_tx(9)batadv_interface_rx(9)batadv_meshif_vlan_release(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(9)batadv_interface_add_vid(9)batadv_interface_kill_vid(9)batadv_set_lockdep_class_one(9)batadv_set_lockdep_class(9)batadv_meshif_init_late(9)batadv_meshif_slave_add(9)batadv_meshif_slave_del(9)batadv_get_drvinfo(9)batadv_get_strings(9)batadv_get_ethtool_stats(9)batadv_get_sset_count(9)batadv_meshif_free(9)batadv_meshif_init_early(9)batadv_meshif_validate(9)batadv_meshif_newlink(9)batadv_meshif_destroy_netlink(9)batadv_meshif_is_valid(9)
bestie reminder: that refcounter bump is not a vibe, it's a responsibility π release it when you're done, batadv_meshif_vlan_release(9) has your back π§
and that's the whole page, mwah π this one lives in ./net/batman-adv and it's dated October 2026, filed under batadv_meshif_vlan_get(9) in the Kernel API Manual β go be great with it ππΈπ
π¦ 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