nla_strcmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ’€

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