nla_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nla_find(9) ✨

okay so this is a page from the Kernel API Manual, section 9 β€” yes bestie, we're in the kernel now, put your hair up πŸ’…


🌸 NAME 🌸

nla_find β€” find a specific attribute in a stream of attributes πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct nlattr * nla_find (const struct nlattr *head , int len , int
attrtype );

like, that's the whole thing. short and iconic. no notes. πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • head β€” the head of the attribute stream. yes literally the head, the start of it, the main character of the stream 🌟
  • len β€” the length of the attribute stream. how much stream we're talking about, in numbers πŸ“
  • attrtype β€” the type of attribute you're looking for. the specific flavor, the exact vibe you want πŸ‘€

🧚 DESCRIPTION 🧚

so basically it returns the first attribute in the stream that matches the type you specified. that's it. that's the whole function. it goes looking, it finds the first one that fits, and it hands it to you 🫢

lowkey obsessed with how simple that is. no cap, sometimes the slay is just doing one thing really well ✨


πŸ”₯ SEE ALSO πŸ”₯

all the siblings, from the kernel file ./lib/nlattr.c β€” they're all in the group chat too, iykyk πŸ’€


and that's the page!! slay 🌈 this one's from ./lib and it's dated October 2026, so yeah β€” go forth and find your attributes bestie πŸ“πŸ’œ

πŸ“¦ where this page comes from