nla_validate_deprecated(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nla_validate_deprecated(9) β€” validate a stream of attributes ✨

hey bestie πŸ’– welcome to nla_validate_deprecated(9) from the Kernel API Manual β€” this is the page about validating a stream of attributes, and yes, it's giving very specific netlink energy. πŸ¦‹

🌸 NAME 🌸

nla_validate_deprecated β€” validate a stream of attributes. periodt. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int nla_validate_deprecated (const struct nlattr *head , int len , int
       maxtype , const struct nla_policy *policy , struct netlink_ext_ack
       *extack );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • head β€” the head of the attribute stream, aka where the whole lineup starts πŸ’«
  • len β€” the length of the attribute stream, exactly that
  • maxtype β€” the maximum attribute type you're expecting to see πŸ‘€
  • policy β€” the validation policy, the rulebook bestie πŸ“œ
  • extack β€” the extended ACK report struct, where the receipts get reported 🧾

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the vibe: this function validates all attributes in the specified attribute stream against the specified policy. validation is done in liberal mode β€” that's the mode, no cap. for more details, see the documentation of struct nla_policy. 🫢

πŸ”₯ RETURN πŸ”₯

returns 0 on success or a negative error code. that's the whole return situation β€” zero is the slay outcome, negative means something went sideways πŸ˜­πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

so many linked besties, fr fr β€” go check them out:


and that's the whole page, bestie 🌈 signing off from ./include/net, dated October 2026, for nla_validate_deprecated(9) β€” byeee πŸ’…πŸŽ€

πŸ“¦ where this page comes from