nlmsg_unicast(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual, bestie 🫢 this page is about nlmsg_unicast, and yes it is exactly as iconic as it sounds. we're sending one (1) netlink message to one (1) destination socket, and honestly? that's the whole personality. ✨


🌸 NAME

nlmsg_unicast β€” unicast a netlink message πŸ’Œ


✨ SYNOPSIS

int nlmsg_unicast (struct sock *sk , struct sk_buff *skb , u32 portid );

that's it. that's the whole call. three arguments, no cap. πŸ”₯


πŸŽ€ ARGUMENTS

  • sk β€” the netlink socket you're spreading the message to 🌈 (yes, the manpage literally says "spread message to", we love a generous queen)
  • skb β€” the netlink message itself, in its socket buffer era πŸ¦‹ it's giving "payload with main character energy"
  • portid β€” the netlink portid of the destination socket πŸ‘‘ like, the exact door we're knocking on. one door. not a group chat. unicast, periodt.

πŸ‘‘ SEE ALSO

okay so there's a whole friend group here, and I'm not leaving anybody out. πŸ’– The kernel file to know about is ./include/net/netlink.h, and these are the besties:

the nlmsg_ girlies ate that, fr fr πŸ’… and now the nla_ crew:

look at that nla_put_ run 😭 every width, every sign, every endianness β€” she's thorough and we respect it. 🧚 and the nla_get_ squad, matching energy:

and the rest of the crew, still in formation, no one left behind πŸŽ€


lowkey obsessed with how nla_is_last(9) is literally just vibing at the end of the list. iykyk πŸ’€

okay that's the page!! go unicast responsibly, bestie πŸ’œ

mwah πŸ’‹ this one came from the kernel source tree at ./include/net, dated October 2026 β€” see you in the next (9) page, love u, bye!! πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from