memory_intersects(9)
π NAME π
okay so bestie, this is memory_intersects(9) from the Kernel API Manual β the function that checks if the region occupied by an object intersects with another memory region. short, iconic, and lowkey exactly what it says. π
β¨
β¨ SYNOPSIS β¨
bool memory_intersects (void *begin , void *end , void *virt , size_t
size );
π«Ά ARGUMENTS π«Ά
here's the cast, no cap:
beginβ virtual address of the beginning of the memory region πendβ virtual address of the end of the memory region πΈvirtβ virtual address of the memory object π¦sizeβ size of the memory object β¨
π RETURN π
this returns true if the object's memory region, specified by virt and size, intersects with the region specified by begin and end β and false otherwise. literally that simple, periodt. ππ₯
π SEE ALSO π
the whole friend group, plus the kernel file where they hang out:
- Kernel file
./include/asm-generic/sections.h memory_contains(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)
signed off from ./include/asm-generic, dated October 2026, filed under memory_intersects(9) πβ¨π
π¦ 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