nla_memcmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nla_memcmp(9) β€” kernel API manual, but make it make sense

okay so bestie, welcome to nla_memcmp(9) πŸŽ€ this is a page from the Kernel API Manual (section 9, the kernel-flavored one), and honestly? it's a little cutie. let's get into it ✨


🌸 NAME 🌸

nla_memcmp β€” compare an attribute with a sized memory area. that's it. that's the whole vibe. she compares, she returns, she slays πŸ’…


✨ SYNOPSIS ✨

int nla_memcmp (const struct nlattr *nla , const void *data , size_t size );

look at her. three args, returns an int, no notes. main character energy fr fr πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nla β€” the netlink attribute. like, the whole point. this is the attribute you're checking 🫢
  • data β€” the memory area. the thing you're comparing against, no cap ✨
  • size β€” the size of that memory area. you gotta tell her how much to look at, she's not a mind reader 😭

πŸ’œ SEE ALSO πŸ’œ

the whole friend group came out for this one, and yes we're listing every single one of them, i would never do them dirty like that πŸ’–

Kernel file ./lib/nlattr.c πŸ“ and also:

like. the entire nlattr cinematic universe. go read them, iykyk 🌈


ngl there are no OPTIONS, no RETURN VALUE, no ERRORS and no BUGS sections on this page β€” that's not me skipping them bestie, that's literally the whole page πŸ™ˆ don't come for me

and that's the tea β˜• this icon of a page lives in ./lib, dated October 2026, and her name is nla_memcmp(9) β€” periodt. go forth and compare those attributes, bestie, you're gonna ate πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from