genlmsg_unicast(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ genlmsg_unicast β€” a Kernel API Manual moment (section 9, bestie)

okay so real talk, we're deep in the Kernel API Manual, section 9, and today's main character is genlmsg_unicast. she's a little function with one job and she does it flawlessly. no cap. πŸŽ€


✨ NAME ✨

genlmsg_unicast β€” unicast a netlink message πŸ’…

like… she sends one (1) message to one (1) specific destination. no group chat, no broadcast, just a private DM. iconic behaviour honestly. πŸ¦‹


🌸 SYNOPSIS 🌸

int genlmsg_unicast (struct net *net , struct sk_buff *skb , u32 portid
);

three arguments, one int coming back at you. the way that signature just sits there being all neat and C-shaped. 🫢


πŸ’– ARGUMENTS πŸ’–

  • net β€” the network namespace where we go look up portid, bestie. it's giving "which world are we searching in" energy. 🌈
  • skb β€” the netlink message itself, chillin' in there as a socket buffer. literal message in a bottle. πŸ“
  • portid β€” the netlink portid of the destination socket. aka the address of the bestie receiving this DM. πŸ“¬

like, that's it. three little params. clean. immaculate. no notes. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

okay so she does not roll alone β€” look at this friend group, it's a whole ensemble cast, and every single one is listed in the Kernel file ./include/net/genetlink.h:

the way that list just keeps going 😭 that's a squad. iykyk. πŸ’€


lowkey reminder: those are all the (9) pages hanging out in ./include/net/genetlink.h β€” go read them, they're all part of the same netlink family lore. πŸ“š

and that's the whole page, bestie β€” nothing skipped, nothing invented, all facts intact and thriving. πŸ’œ

signed off with love, from source ./include/net, dated October 2026, brought to you by genlmsg_unicast(9) πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from