batadv_netlink_hardif_fill(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the glow-up of batadv_netlink_hardif_fill, straight out of the Kernel API Manual. this is the little function that ✨fills✨ a message with hardif attributes β€” like, it's the one doing the packing, and honestly? iconic. πŸŽ€


🌸 NAME 🌸

batadv_netlink_hardif_fill β€” Fill message with hardif attributes πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int batadv_netlink_hardif_fill (struct sk_buff *msg , struct batadv_priv
*bat_priv , struct batadv_hard_iface *hard_iface , enum
batadv_nl_commands cmd , u32 portid , u32 seq , int flags , struct
netlink_callback *cb );

no cap, that signature is a whole meal. eight arguments. she's committed. πŸ”₯


πŸ’– ARGUMENTS πŸ’–

  • msg β€” the Netlink message to dump into 🫢 like, this is the canvas, and we're painting on it.
  • bat_priv β€” the bat priv with all the mesh interface information 🧚 all the lore lives here.
  • hard_iface β€” hard interface which was modified ⭐ the main character of this particular call, fr fr.
  • cmd β€” type of message to generate πŸ’Œ tells you what kind of message we're cooking up.
  • portid β€” Port making netlink request πŸ“¬ the port that's asking.
  • seq β€” sequence number for message πŸ”’ so everything stays in order, periodt.
  • flags β€” Additional flags for message 🚩 the extra little vibe settings.
  • cb β€” Control block containing additional options πŸŽ€ the little bag of extras.

⭐ RETURN ⭐

0 on success, or a negative error number in case of failure 😭 β€” so yeah, check it, bestie. zero means slay, negative means something went sideways.


🌈 SEE ALSO 🌈

Kernel file ./net/batman-adv/netlink.c enum πŸ‘€

and the whole friend group, because she does not exist in a vacuum:

iykyk πŸ’œ


mwah, that's the whole page 🫢 this came from ./net/batman-adv, dated October 2026, and the manual itself is batadv_netlink_hardif_fill(9) β€” go read the source bestie, it's giving main character energy πŸ’…βœ¨

πŸ“¦ where this page comes from