1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Kernel: Make mmap validation functions return ErrorOr<void>

This commit is contained in:
int16 2022-02-25 12:24:57 +11:00 committed by Andreas Kling
parent 4b96d9c813
commit 256744ebdf
2 changed files with 32 additions and 40 deletions

View file

@ -524,8 +524,8 @@ public:
ErrorOr<void> require_promise(Pledge);
ErrorOr<void> require_no_promises() const;
bool validate_mmap_prot(int prot, bool map_stack, bool map_anonymous, Memory::Region const* region = nullptr) const;
bool validate_inode_mmap_prot(int prot, const Inode& inode, bool map_shared) const;
ErrorOr<void> validate_mmap_prot(int prot, bool map_stack, bool map_anonymous, Memory::Region const* region = nullptr) const;
ErrorOr<void> validate_inode_mmap_prot(int prot, const Inode& inode, bool map_shared) const;
private:
friend class MemoryManager;