nla_len(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 nla_len(9) 🌸

Ok so bestie, welcome to the Kernel API Manual page for nla_len β€” yes that's the manual name, we're fancy here πŸ’… β€” and honestly? This one is a little snack. Short, sweet, and it does exactly one thing. Let's get into it πŸŽ€


✨ NAME ✨

nla_len β€” length of payload πŸ‘‘

That's it. That's the whole job. It tells you how long the payload is. Iconic behaviour, no notes.


πŸ¦‹ SYNOPSIS πŸ¦‹

u16 nla_len (const struct nlattr *nla );

Lowkey the prettiest little signature. Returns a u16, takes one pointer, refuses to elaborate further. Main character energy fr fr ✨


πŸ’– ARGUMENTS πŸ’–

  • nla β€” netlink attribute 🫢

That's the one and only thing you hand it: a netlink attribute. It's a const struct nlattr *, so like, it's not gonna touch your stuff, it's just gonna look at it. Respectful. We love that for us 🌸


🌈 SEE ALSO 🌈

Okay bestie, buckle in, because this list is long β€” it's giving "the whole netlink friend group showed up to the party" 😭 Every single one of these is invited, no gatekeeping, no cap:

Like… every single one, bestie. Not me listing the entire netlink extended family 😭 but they're all here, so go read them, iykyk 🧚


πŸ’‘ Reminder that nla_len gives you the length of payload β€” that's the whole vibe. Nothing more, nothing less. Periodt. πŸ’…

Okay that's the page! Hope it ate πŸ“ This little number lives in ./include/net and it's dated October 2026, so like… bookmark it, screenshot it, tell your friends πŸ’œ Byeee! 🌟

πŸ“¦ where this page comes from