diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-16 12:13:43 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-16 12:13:43 +0100 |
commit | 4ea28bf0a57ab88d3c5e3aec81c28de53c6ebc5b (patch) | |
tree | cbd8885f633b384a07050b0948f7197d87d46ba5 /Kernel/MemoryManager.h | |
parent | 4db78dabd37cdf16bcd9df7733936f91f581935a (diff) | |
download | serenity-4ea28bf0a57ab88d3c5e3aec81c28de53c6ebc5b.zip |
Kernel: Add a simple shared memory API for two processes only.
And use this to implement shared bitmaps between WindowServer and clients.
Diffstat (limited to 'Kernel/MemoryManager.h')
-rw-r--r-- | Kernel/MemoryManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/MemoryManager.h b/Kernel/MemoryManager.h index d79382b4f2..0cdd526a0f 100644 --- a/Kernel/MemoryManager.h +++ b/Kernel/MemoryManager.h @@ -103,6 +103,8 @@ public: void inode_contents_changed(Badge<Inode>, off_t, size_t, const byte*); void inode_size_changed(Badge<Inode>, size_t old_size, size_t new_size); + size_t size() const { return m_size; } + private: VMObject(RetainPtr<Inode>&&); explicit VMObject(VMObject&); |