batadv_interface_kill_vid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

  • 0 on success β€” she did it, periodt πŸ‘‘
  • -EINVAL if the specified prototype is not ETH_P_8021Q β€” like, wrong protocol bestie, try again πŸ™ˆ
  • -ENOENT if the specified vlan id wasn't registered β€” there was nothing there to kill, awkward πŸ’€
fr fr, if you get -EINVAL, check your proto first. 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 🫢:

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