batadv_get_vlan_from_info(9)
π 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:
enum batadv_netlink_multicast_groups(9)enum batadv_genl_ops_flags(9)batadv_netlink_get_ifindex(9)batadv_netlink_mesh_fill_ap_isolation(9)batadv_netlink_set_mesh_ap_isolation(9)batadv_netlink_mesh_fill(9)batadv_netlink_notify_mesh(9)batadv_netlink_get_mesh(9)batadv_netlink_set_mesh(9)batadv_netlink_tp_meter_put(9)batadv_netlink_tpmeter_notify(9)batadv_netlink_tp_meter_start(9)batadv_netlink_tp_meter_cancel(9)batadv_netlink_hardif_fill(9)batadv_netlink_notify_hardif(9)batadv_netlink_cmd_get_hardif(9)batadv_netlink_set_hardif(9)batadv_netlink_dump_hardif(9)batadv_netlink_vlan_fill(9)batadv_netlink_notify_vlan(9)batadv_netlink_get_vlan(9)batadv_netlink_set_vlan(9)batadv_netlink_get_meshif_from_ifindex(9)batadv_netlink_get_meshif_from_info(9)batadv_netlink_get_meshif(9)batadv_netlink_get_hardif_from_ifindex(9)batadv_netlink_get_hardif_from_info(9)batadv_netlink_get_hardif(9)batadv_pre_doit(9)batadv_post_doit(9)batadv_netlink_register(9)batadv_netlink_unregister(9)
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
- 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