mem_is_zero(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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