__nlmsg_parse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __nlmsg_parse β€” Kernel API Manual πŸ’…

okay so bestie, welcome to the __nlmsg_parse(9) page ✨ this is the Kernel API Manual, and it's a short one β€” like, suspiciously short β€” but we're gonna give it the full main-character treatment anyway. Let's go 🫢


🌸 NAME 🌸

__nlmsg_parse β€” parse attributes of a netlink message πŸ’–


✨ SYNOPSIS ✨

int __nlmsg_parse (const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[],
                   int maxtype, const struct nla_policy *policy,
                   unsigned int validate, struct netlink_ext_ack *extack);

like… it returns an int, it takes seven things, and it's giving "I have a very specific job" energy 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • nlh β€” the netlink message header. the whole message's crown πŸ‘‘
  • hdrlen β€” length of the family specific header. yes, family-specific, she's custom 🌈
  • tb β€” destination array with maxtype+1 elements. destination array!! count your elements, bestie, maxtype+1 of them, no more no less πŸ™ˆ
  • maxtype β€” maximum attribute type to be expected. the ceiling, the limit, the "we don't go past this" πŸ’…
  • policy β€” validation policy. rules are rules πŸŽ€
  • validate β€” validation strictness. how hard are we gonna check? that's the vibe check πŸ”₯
  • extack β€” extended ACK report struct. the receipts struct πŸ“‹

πŸ¦‹ DESCRIPTION πŸ¦‹

so the entire description is, and I cannot stress this enough, literally:

See nla_parse

that's it. that's the description πŸ’€ she said "my story is told elsewhere, go ask my sibling." iconic, honestly. so like, nla_parse is where the actual tea is at πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

the friend group is huge, buckle up:

like I said. huge friend group. go say hi to all of them πŸ§šπŸ’œ


and that's the whole page, bestie, short and sweet πŸ“ this one came from the source at ./include/net, dated October 2026, and it lives in the Kernel API Manual β€” mwah, go parse some attributes, ily, bye πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from