nla_get_be16_default(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– nla_get_be16_default(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for nla_get_be16_default β€” the "give me the value, or give me the backup value" girlie of netlink attribute getters. she's lowkey iconic and honestly so simple it's giving main character energy πŸŽ€


✨ NAME ✨

nla_get_be16_default β€” return payload of be16 attribute or default

πŸ¦‹ SYNOPSIS πŸ¦‹

__be16 nla_get_be16_default (const struct nlattr *nla , __be16 defvalue
);

🌸 ARGUMENTS 🌸

  • nla β€” the __be16 netlink attribute, and yes bestie it may be NULL, no cap πŸ™ˆ
  • defvalue β€” the default value to use if nla is NULL. your fallback, your safety net, your emotional support number 🫢

⭐ RETURN ⭐

the value of the attribute, or the default value if not present. that's it, that's the whole vibe β€” present? slay, you get the value. not present? you still get something, because defvalue has your back πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/net/netlink.h, plus the whole extended friend group:


ngl if you made it to the bottom of that SEE ALSO list you deserve a little treat πŸ“

and that's the whole page, bestie β€” written from the ./include/net directory, dated October 2026, in the Kernel API Manual πŸ’œβœ¨ iykyk

πŸ“¦ where this page comes from