memory_contains(9)
π NAME π
okay so bestie, this is memory_contains(9) from the Kernel API Manual, and it literally checks if an object is contained within a memory region. That's the whole vibe. β¨
π SYNOPSIS π
bool memory_contains (void *begin , void *end , void *virt , size_t size
);
πΈ ARGUMENTS πΈ
beginβ virtual address of the beginning of the memory region. Like, where the region starts, bestie. π«Άendβ virtual address of the end of the memory region. The finish line. πvirtβ virtual address of the memory object. The thing we're checking on. πsizeβ size of the memory object. Gotta know how big it is. π
π RETURN π
It returns true if the object specified by virt and size is entirely contained within the memory region defined by begin and end β and false otherwise. No cap, that's the whole return story. π
π¦ SEE ALSO π¦
- Kernel file:
./include/asm-generic/sections.h memory_intersects(9)init_section_contains(9)init_section_intersects(9)is_kernel_core_data(9)is_kernel_rodata(9)is_kernel_inittext(9)__is_kernel_text(9)__is_kernel(9)
cute sign-off: source/version ./include/asm-generic Β· October 2026 Β· memory_contains(9) out π
π«Ά
π¦ 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