memory_contains(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


cute sign-off: source/version ./include/asm-generic Β· October 2026 Β· memory_contains(9) out πŸ’…πŸ«Ά

πŸ“¦ where this page comes from