nla_find(9)
β¨ 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 π
__nla_validate(9)nla_policy_len(9)__nla_parse(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)
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
- 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