memory_intersects(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:


signed off from ./include/asm-generic, dated October 2026, filed under memory_intersects(9) πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from