batadv_netlink_vlan_fill(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 an enum 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