genlmsg_put(9)
π 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 π
- Kernel file
./net/netlink/genetlink.c __genl_sk_priv_get(9)genl_sk_priv_get(9)genl_register_family(9)genl_unregister_family(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms