nla_policy_len(9)
π
nla_policy_len(9) β Kernel API Manual, bestie edition β¨
πΈ NAME πΈ
nla_policy_len β determine the max. length of a policy π«Ά
β¨ SYNOPSIS β¨
int nla_policy_len (const struct nla_policy *p , int n );
π ARGUMENTS π
pβ the policy you're working with, bestie πnβ the number of policies π’
π¦ DESCRIPTION π¦
Okay so this one determines the max. length of the policy π. It's currently used to allocate Netlink buffers roughly the size of the actual message β like, matching the real message's vibe instead of just guessing wildly β¨.
It returns 0 on success, or a negative error code if things go sideways π. That's the tea, fr fr.
π SEE ALSO π
Kernel file ./lib/nlattr.c β plus the whole friend group:
__nla_validate(9)__nla_parse(9)nla_find(9)nla_strscpy(9)nla_strdup(9)nla_memcpy(9)nla_memcmp(9)nla_strcmp(9)__nla_reserve(9)__nla_reserve_64bit(9)__nla_reserve_nohdr(9)nla_reserve(9)nla_reserve_64bit(9)nla_reserve_nohdr(9)__nla_put(9)__nla_put_64bit(9)__nla_put_nohdr(9)nla_put(9)nla_put_64bit(9)nla_put_nohdr(9)nla_append(9)
This page lives in ./lib, is dated October 2026, and it's the nla_policy_len(9) manual page β periodt π
β¨
π¦ 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