nla_strcmp(9)
π NAME π
nla_strcmp β compares a string attribute against a string, that's it, that's the whole gig π«Ά
okay so real quick before we dive in: this page lives in the Kernel API Manual, and honestly? iconic of it. it's giving "small function, big responsibilities." let's get into it β¨
β¨ SYNOPSIS β¨
int nla_strcmp (const struct nlattr *nla , const char *str );
literally the whole signature, no notes, she's concise π
π ARGUMENTS π
nlaβ a netlink string attribute. yeah. that's the vibe. it's the attribute side of the comparison π¦strβ another string. just a regular string, hanging out, waiting to be compared against π
bestie pls note: the manpage gives us exactly these two and nothing else, so no cap, that's all we're working with π
π SEE ALSO π
so like, this is the part where the kernel goes "here's the whole friend group" and lists literally everything in ./lib/nlattr.c. and we are OBSESSED with the completeness. no crumbs left behind, periodt π
__nla_validate(9)nla_policy_len(9)__nla_parse(9)nla_find(9)nla_strscpy(9)nla_strdup(9)nla_memcpy(9)nla_memcmp(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)
the source file for all this? ./lib/nlattr.c, obviously, the main character of the lib directory π
okay that's the whole page, you ate that, go read nla_memcmp(9) next iykyk π
signing off from the ./lib directory, dated October 2026, on this very nla_strcmp(9) page β mwah, love u, bye π§ππ
π¦ 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