nla_get_be16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 nla_get_be16(9) β€” a Kernel API Manual moment 🌸

okay bestie, welcome to the Kernel API Manual entry for nla_get_be16 πŸ’… this one is short and sweet and honestly kind of iconic for it.


✨ NAME ✨

nla_get_be16 β€” returns the payload of a __be16 attribute. that's it. that's the whole job. she's a getter, she gets 🫢


✨ SYNOPSIS ✨

__be16 nla_get_be16 (const struct nlattr *nla );

literally just hand her one netlink attribute pointer and she hands you back a __be16. no cap, no drama πŸ’–


✨ ARGUMENTS ✨

  • nla β€” a __be16 netlink attribute. that's the baby you're passing in, and she's the const struct nlattr * kind πŸŽ€

✨ SEE ALSO ✨

okay so this is the part where the manpage absolutely goes off β€” like, the friend group here is huge, and every single one of them is invited to the party. no gatekeeping, we're listing all of them πŸ‘‘

first up, the kernel file that started it all:

  • ./include/net/netlink.h

then the structs and the one enum (yes she's special):

  • struct nla_policy(9), struct nl_info(9), enum netlink_validation(9)

the nlmsg basics β€” sizes, lengths, and general "where am I" energy:

the parsing / validating girlies:

the message-building crew:

attribute sizes, types, and nested-finding:

the whole nla_put_* family (the setters, the shovers, the "here's your value bestie" squad):

and the whole nla_get_* family, which is our girl's home turf πŸ’– (note: nla_get_be16 itself is not in this list β€” she's the main character here, she doesn't need to @ herself):

and the nesting / iterating / 64-bit-alignment legends to round it out 🌈:


that's the whole page, bestie β€” no plot twists, she just gets a __be16 out of a netlink attribute and minds her own business πŸ¦‹

signing off from ./include/net πŸ’… dated October 2026 β€” stay hydrated, read your headers, and remember: nla_get_be16(9) said what she said πŸŽ€βœ¨

πŸ“¦ where this page comes from