reverse_memcmp(9)
π reverse_memcmp
okay bestie, so this whole page is reverse_memcmp from the kernel API manual (9), and it's basically memcmp but walking backwards. iconic behaviour honestly. let's get into it β¨
πΈ SYNOPSIS
int reverse_memcmp (const void *cs , const void *ct , size_t count );
that's the whole signature, no notes. π
π¦ ARGUMENTS
csβ one area of memory. like, a block of bytes, the first one, your main character block πctβ another area of memory. the other block. the rival. the comparison partner πcountβ the size of the area. how many bytes we're looking at, no cap π
π₯ DESCRIPTION
so this is a cut'n'paste from the original memcmp (peep lib/string.c if you wanna see the og π), just with minimal modifications. that's it, that's the lore. it compares two areas of memory, but in reverse order β hence the name, iykyk π§
fr fr, "minimal modifications" is the whole description. the kernel devs said copy, paste, tweak, slay, periodt. π
β SEE ALSO
- Kernel file
./drivers/net/wireless/ath/wil6210/txrx.cβ this is where the vibes live, go look π«Ά
aaaand that's the page bestie!! π this little gem comes from source ./drivers/net/wireless/ath/wil..., dated October 2026, and it lives in the manual as reverse_memcmp(9) β go forth and compare in reverse, you absolute icon ππ
π¦ 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