batadv_netlink_vlan_fill(9)
π batadv_netlink_vlan_fill π
okay so we're deep in the kernel API manual rn β this is batadv_netlink_vlan_fill from the Kernel API Manual, and yes she's a function, yes she's iconic, and yes she's about to fill a netlink message with vlan attributes. bestie, let's get into it π
β¨ SYNOPSIS β¨
int batadv_netlink_vlan_fill (struct sk_buff *msg , struct batadv_priv
*bat_priv , struct batadv_meshif_vlan *vlan , enum batadv_nl_commands
cmd , u32 portid , u32 seq , int flags );
like, that's the whole vibe check right there π
πΈ ARGUMENTS πΈ
okay so every single parameter, no skips, no cap:
msgβ the netlink message you're dumping into. that's her home. that's where the content goes πbat_privβ the bat priv holding, literally, all the mesh interface information. she knows everything about everybody, main character energy fr.vlanβ the vlan which was modified. this is the one we're talking about rn π¦cmdβ the type of message to generate (it's anenum batadv_nl_commands, so like, pick your fighter β¨)portidβ the Port making the netlink request. say hi, she asked for this πseqβ the sequence number for the message. gotta keep them in order, order matters, it's giving organized πflagsβ Additional flags for message. sprinkle whatever extra you need on top π
π₯ RETURN π₯
0 on success β slay, we love a clean return π«Ά
β¦or a negative error number in case of failure π (and yes, negative means something went wrong, not me being dramatic for once)
π SEE ALSO π
the whole friend group, and we're tagging everyone, periodt:
Kernel file ./net/batman-adv/netlink.c 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_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_get_vlan_from_info(9), batadv_pre_doit(9), batadv_post_doit(9), batadv_netlink_register(9), batadv_netlink_unregister(9)
iykyk π
ngl if you got here from a link and you're confused: you're in kernel space now, go read ./net/batman-adv/netlink.c and it'll all make sense (or it won't, but that's a tomorrow problem π)
and that's the page, bestie! π this whole thing lives in ./net/batman-adv, October 2026 edition, under the name batadv_netlink_vlan_fill(9) β mwah, go forth and fill those vlan attributes β¨π§β
π¦ 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