batadv_get_vlan_from_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_get_vlan_from_info β€” Kernel API Manual ✨

Okay so bestie, welcome to the manual page for batadv_get_vlan_from_info(9), straight out of the Kernel API Manual. Yes it's a mouthful, no you don't have to say it out loud, but it IS the function we're about to obsess over. 🫢


🌸 NAME 🌸

batadv_get_vlan_from_info β€” retrieve vlan from genl attributes. That's it, that's the whole vibe. πŸ’«


πŸ¦‹ SYNOPSIS πŸ¦‹

struct batadv_meshif_vlan * batadv_get_vlan_from_info (struct
batadv_priv *bat_priv , struct net *net , struct genl_info *info );

Like, look at that signature. It's giving "I take three pointers and I give you back a vlan." Main character energy fr fr. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information. This is the big one, the info hub, the girl who knows everybody. πŸ’–
  • net β€” the applicable net namespace. Which little universe of networking are we in, bestie? 🌈
  • info β€” receiver information. The genl info that comes flying in. πŸ“¨

⭐ RETURN ⭐

Pointer to vlan on success β€” and yes, it comes back with an increased refcnt, so mind your references, no cap. On error you get an error pointer back. 😭

Heads up bestie: error pointer means you check it with the error-checking macros, you don't just deref it. That refcnt ain't gonna decrement itself. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/batman-adv/netlink.c, plus this absolute stacks of friends. We're listing every single one because they all ate:

All thirty-two of them. Periodt. πŸ’…


And that's the whole page, bestie β€” go forth and get that vlan. 🧚

Source: ./net/batman-adv Β· October 2026 Β· batadv_get_vlan_from_info(9) β€” mwah, love u, bye! πŸ“

πŸ“¦ where this page comes from