mem_is_zero(9)
π mem_is_zero(9) π
hiii bestie!! welcome to the Kernel API Manual β¨ this page is literally all about mem_is_zero, and it is lowkey the simplest vibe check in the kernel: is this memory area just a bunch of 0's? let's get into it π«Ά
β¨ NAME β¨
mem_is_zero β Check if an area of memory is all 0's. π
π¦ SYNOPSIS π¦
bool mem_is_zero (const void *s , size_t n );
π ARGUMENTS π
sβ the memory area π like, the chunk we're checking.nβ the size of the area π
π RETURN π
True if the area of memory is all 0's. periodt. β
π SEE ALSO π
the Kernel file is ./include/linux/string.h, and these are the see-also besties, no cap:
memdup_array_user(9)vmemdup_array_user(9)strscpy(9)strscpy_pad(9)sysfs_match_string(9)memzero_explicit(9)kbasename(9)strtomem_pad(9)strtomem(9)memtostr(9)memtostr_pad(9)memset_after(9)memset_startat(9)str_has_prefix(9)strstarts(9)strends(9)
mwah π okay that's the whole page!! source/version: ./include/linux; date: October 2026; title: mem_is_zero(9) β bye bestie, go check ur memory responsibly π§π
π¦ 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