nla_memcmp(9)
π 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:
__nla_validate(9)nla_policy_len(9)__nla_parse(9)nla_find(9)nla_strscpy(9)nla_strdup(9)nla_memcpy(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)
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
- 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