genlmsg_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… genlmsg_put(9) β€” like, the kernel API manual bestie πŸŽ€

okay so real talk, this one lives in the Kernel API Manual and it's genuinely iconic β€” it's the little function that slaps a generic netlink header onto your message so it can go out into the world looking cute and legible. main character energy fr fr ✨


🌸 NAME 🌸

genlmsg_put β€” Add generic netlink header to netlink message

like, the whole job. that's it. that's the vibe. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

void * genlmsg_put (struct sk_buff *skb , u32 portid , u32 seq , const
struct genl_family *family , int flags , u8 cmd );

not me writing this signature out exactly, character for character, because bestie we do not paraphrase code πŸ’…


✨ ARGUMENTS ✨

  • skb β€” socket buffer holding the message. it's the little container your message is chillin' in 🫢
  • portid β€” netlink portid the message is addressed to. iykyk, it's who you're sending it to πŸ’Œ
  • seq β€” sequence number (usually the one of the sender). lowkey just keep track of it, okay? πŸ”’
  • family β€” generic netlink family. the fam. the whole group chat πŸ‘‘
  • flags β€” netlink message flags. the little toggles that change how it behaves βš™οΈ
  • cmd β€” generic netlink command. which thing you're actually asking for 🎯

πŸ’œ DESCRIPTION πŸ’œ

Returns pointer to user specific header 🌈

that's the entire description and honestly? she's concise. she knows what she is. periodt.

ngl, that's all the manpage gives us on behavior β€” no extra lore, no secret tips, so i'm not out here inventing any. we stay factual in this group chat πŸ’€

πŸ“ SEE ALSO πŸ“

go read those next bestie, they're all in the same friend group πŸ§šπŸ’–


πŸ’… little reminder: all the option names, file paths and function names above are copied exactly β€” do not rename them, do not "fix" them, do not merge them. the facts do not change just because the vibe is immaculate ✨

mwah πŸ’‹ that's the page!! this gorgeous little number comes to you from the kernel source under ./net/netlink, dated October 2026 β€” so go forth, add your header, and slay πŸ”₯πŸ‘‘πŸŒΊ

πŸ“¦ where this page comes from