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:
parent
4b96d9c813
commit
256744ebdf
2 changed files with 32 additions and 40 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue