nlmsg_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlmsg_data β€” head of message payload

okay bestie, first things first: this is page nlmsg_data(9), like, section 9 of the Kernel API Manual β€” the kernel-docs girlies, not the user-command ones. and it's genuinely such a tiny little function. one job. one vibe. she's the head of the message payload and she knows it. periodt. ✨


πŸŽ€ NAME πŸŽ€

nlmsg_data β€” head of message payload

like, literally just: gimme the pointer to where the actual payload starts inside a netlink message. that's the whole personality. iconic, lowkey.


πŸ¦‹ SYNOPSIS πŸ¦‹

void * nlmsg_data (const struct nlmsghdr *nlh );

copy it exactly, bestie β€” yes there's a space before the );, no we're not fixing it, she's perfect as she is πŸ’–


🌸 ARGUMENTS 🌸

  • nlh β€” the netlink message header, typed const struct nlmsghdr *. that's your ticket, your little badge that says "I'm allowed in the netlink club." hand her over and she gives you the payload head. no cap.

✨ SEE ALSO ✨

okay so this is the part where she tags literally everyone in the group chat β€” and there are so many of them, so I'm not dropping a single one. 🫢

first, the sacred text herself: kernel file ./include/net/netlink.h

then the crew, in the order she listed them:

like… that's the whole extended friend group and not one of them got left on read. πŸ’€πŸ’–

fr fr though: every one of those is a real cross-reference, so if you're chasing a netlink question, one of them is your girl. don't come for me if you skim and miss one, i listed them all, i promise 😭

and that's the page!! mwah πŸ’‹ written under ./include/net, dated October 2026, living proudly in section 9 of the Kernel API Manual β€” go be the head of your own message payload, bestie. slay. πŸ‘‘βœ¨

πŸ“¦ where this page comes from