batadv_interface_kill_vid(9)
π batadv_interface_kill_vid(9) β a Kernel API Manual moment
okay so bestie, we're in the batadv_interface_kill_vid man page, from the Kernel API Manual, and honestly? it's giving "small function, big responsibilities" energy. sit down, grab a strawberry π, let's go.
β¨ NAME β¨
batadv_interface_kill_vid β the ndo_kill_vid API implementation. yes that's the whole vibe. it's the "delete a vlan" hook, and it slays at exactly one thing π
π SYNOPSIS π
int batadv_interface_kill_vid (struct net_device *dev , __be16 proto ,
unsigned short vid );
three arguments, one int coming back, no cap. π«Ά
π¦ ARGUMENTS π¦
devβ the netdev of the mesh interface. it's the main character here, the whole interface we're operating on β¨protoβ the protocol of the vlan id π (we're gonna be picky about this one, watch)vidβ the identifier of the deleted vlan. literally the vlan that's getting yeeted πΈ
π DESCRIPTION π
so what does it actually do? it destroys all the internal structures used to handle the vlan identified by vid on top of the mesh interface. that's it. that's the whole function. cleanup crew, but make it iconic π§
not me being obsessed with a function whose entire job is "remove the vlan scaffolding, respectfully". ate and left no crumbs.
π₯ RETURN π₯
0on success β she did it, periodt π-EINVALif the specified prototype is notETH_P_8021Qβ like, wrong protocol bestie, try again π-ENOENTif the specified vlan id wasn't registered β there was nothing there to kill, awkward π
fr fr, if you get-EINVAL, check yourprotofirst. that's the whole vibe check.
π SEE ALSO π
okay this list is long, so buckle up. first up, the kernel file itself:
./net/batman-adv/mesh-interface.c
and then 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_vlan_get(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(9)batadv_interface_add_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)
iykyk β that's basically the entire batman-adv interface roster. tag yourself, i'm batadv_interface_add_vid(9)'s chaotic twin π
and that's the page, bestie πβ¨ sourced straight from ./net/batman-adv, dated October 2026, living in the Kernel API Manual β go forth and kill those vlans responsibly ππ¦
π¦ 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