__nla_validate_nested(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __nla_validate_nested(9) πŸ’…

okay so bestie, you're in the Kernel API Manual and this is the __nla_validate_nested(9) page β€” yes, the nested-attribute validation one. grab a lil snack, we're validating a stream of nested attributes and it's gonna slay. πŸ“βœ¨

πŸŽ€ NAME πŸŽ€

__nla_validate_nested β€” Validate a stream of nested attributes. No cap, that's the whole name vibe. πŸ’…

✨ SYNOPSIS ✨

int __nla_validate_nested (const struct nlattr *start , int maxtype ,
       const struct nla_policy *policy , unsigned int validate , struct
       netlink_ext_ack *extack );

🌸 ARGUMENTS 🌸

  • start β€” container attribute. That's it, she's a container attribute and we love her.
  • maxtype β€” maximum attribute type to be expected. Types above it get ignored later β€” iykyk.
  • policy β€” validation policy. The rulebook for this whole vibe check.
  • validate β€” validation strictness. How strict are we being? This is the setting.
  • extack β€” extended ACK report struct. The extended ACK report struct, periodt. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: __nla_validate_nested validates all the attributes in the nested attribute stream against the specified policy. Every single attribute gets checked against the policy. πŸ’…

Attributes with a type exceeding maxtype will be ignored. Yep β€” if the type exceeds maxtype, it just gets ignored, no drama.

For more details, see the documentation of struct nla_policy. That's where the deep lore lives. 🌈

🫢 RETURN 🫢

Returns 0 on success or a negative error code. That's the whole return section, bestie β€” simple, iconic, done. πŸ‘‘

🌈 SEE ALSO 🌈

the whole kernel-netlink squad is here, no one left behind:


and that's the whole page, bestie! this lil manual page comes from source/version ./include/net and is dated October 2026, all about __nla_validate_nested(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from