summaryrefslogtreecommitdiff
path: root/Kernel/MemoryManager.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-16 12:13:43 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-16 12:13:43 +0100
commit4ea28bf0a57ab88d3c5e3aec81c28de53c6ebc5b (patch)
treecbd8885f633b384a07050b0948f7197d87d46ba5 /Kernel/MemoryManager.h
parent4db78dabd37cdf16bcd9df7733936f91f581935a (diff)
downloadserenity-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.h2
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&);