batadv_interface_add_vid(9)
π batadv_interface_add_vid(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the batadv_interface_add_vid(9) page β part of the Kernel API Manual, and honestly it's giving "small function, big responsibilities" energy π
πΈ NAME πΈ
batadv_interface_add_vid β the ndo_add_vid API implementation. that's it, that's the whole name, and it ate π
β¨ SYNOPSIS β¨
int batadv_interface_add_vid (struct net_device *dev , __be16 proto ,
unsigned short vid );
look at that signature. iconic. no notes π
π«Ά ARGUMENTS π«Ά
devβ the netdev of the mesh interface. the main character of this whole operation fr fr.protoβ protocol of the vlan id. it's__be16bestie, keep up πvidβ identifier of the new vlan. anunsigned short, and yes it's literally the whole point of the function.
π¦ DESCRIPTION π¦
so here's the vibe: this thing sets up all the internal structures needed for handling the new vlan on top of the mesh interface. all of them. not some, not most β all. it's doing the behind-the-scenes work so the vlan can actually exist up there in the mesh interface. lowkey underrated, highkey essential π
β RETURN β
0on success π- a negative error code in case of failure π
that's the whole contract. simple, clean, slay.
π SEE ALSO π
the kernel file lives at ./net/batman-adv/mesh-interface.c, and here's the whole friend group β every single one of them, no cap:
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_vlan_get(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(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)
also peep sibling-coded batadv_interface_kill_vid(9) β the add's evil twin, we love a matched set π
and that's the page bestie!! π source path ./net/batman-adv, dated October 2026, page batadv_interface_add_vid(9) β mwah, go touch some kernel code, ily π«Άπ
π¦ 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