kmsan_check_memory(9)
β¨ NAME β¨
kmsan_check_memory β check the memory range for being initialized π
Basically, this is the Kernel API Manual's little vibe-check function, and it wants to know one thing: is this chunk of memory actually initialized or not? π
πΈ SYNOPSIS πΈ
void kmsan_check_memory (const void *address , size_t size );
π ARGUMENTS π
addressβ the address to start with, bestie. Like, where the range begins πsizeβ size of buffer to check. Yep, that's how much we're looking at π«Ά
π¦ DESCRIPTION π¦
Okay so here's the tea: if any piece of the given range is marked as uninitialized, KMSAN will report an error. Not me being dramatic β that's literally what it does ππ₯
Like, every single bit of that range gets checked, and the moment something's uninitialized in there, it's giving error report energy πβ¨
π SEE ALSO π
Kernel file ./include/linux/kmsan-checks.h β and these iconic functions right here:
That's the whole page, no cap π This cutie lives under ./include/linux, and it's dated October 2026 β so yeah, mark your calendars, bestie ππ
π¦ 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