batadv_meshif_vlan_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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 everything
  • vid β€” 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:


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