diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-19 02:17:20 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-19 02:17:20 +0100 |
commit | 629c5be10b00dd4d8e5675018e9282b84a9586e3 (patch) | |
tree | c90856617dceed5145f5154e99f7c4ca0d625e92 /Kernel/Process.h | |
parent | e88f306d07225486c4f699d69dbfe39d79028586 (diff) | |
download | serenity-629c5be10b00dd4d8e5675018e9282b84a9586e3.zip |
Add basic zero faults.
mmap() will now map uncommitted pages that get allocated and zeroed upon the
first access. I also made /proc/PID/vm show number of "committed" bytes in
each region. This is so cool! :^)
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index e5d8929228..2a03dcd400 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -283,7 +283,7 @@ private: TTY* m_tty { nullptr }; - Region* allocate_region(LinearAddress, size_t, String&& name, bool is_readable = true, bool is_writable = true); + Region* allocate_region(LinearAddress, size_t, String&& name, bool is_readable = true, bool is_writable = true, bool commit = true); Region* allocate_file_backed_region(LinearAddress, size_t, RetainPtr<Vnode>&& vnode, String&& name, bool is_readable, bool is_writable); Region* allocate_region_with_vmo(LinearAddress, size_t, RetainPtr<VMObject>&&, size_t offset_in_vmo, String&& name, bool is_readable, bool is_writable); bool deallocate_region(Region& region); |