Kernel/LibC: Implement MMAP_FIXED_NOREPLACE

This is a handy thing from linux

Also fix MMAP_FIXED validation and error reporting
This commit is contained in:
2025-11-10 03:52:33 +02:00
parent 82c8eeb4be
commit f1d12c330e
4 changed files with 45 additions and 33 deletions

View File

@@ -33,6 +33,7 @@ namespace Kernel
bool contains(vaddr_t address) const;
bool contains_fully(vaddr_t address, size_t size) const;
bool overlaps(vaddr_t address, size_t size) const;
bool is_contained_by(vaddr_t address, size_t size) const;
bool writable() const { return m_flags & PageTable::Flags::ReadWrite; }