diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-18 15:01:40 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-18 15:01:40 +0100 |
commit | f7cc4541626279b07626b9d98beba03a7230b518 (patch) | |
tree | 3aaebc55d63a16825b27d70160316b7d1e86c735 /Kernel/MemoryManager.h | |
parent | 9454c5dd5254c9cd75b1b039da0cadb8c020ae38 (diff) | |
download | serenity-f7cc4541626279b07626b9d98beba03a7230b518.zip |
Add mechanism to expose kernel variables to userspace via ProcFS.
Only booleans are supported at first. More types can be added easily.
Use this to add /proc/sys/wm_flash_flush which when enabled flashes pending
screen flush rects in yellow before they happen.
Diffstat (limited to 'Kernel/MemoryManager.h')
-rw-r--r-- | Kernel/MemoryManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/MemoryManager.h b/Kernel/MemoryManager.h index cd82206966..17b99fcfe1 100644 --- a/Kernel/MemoryManager.h +++ b/Kernel/MemoryManager.h @@ -15,6 +15,7 @@ class Process; extern Process* current; +class SynthFSInode; enum class PageFaultResponse { ShouldCrash, @@ -166,7 +167,7 @@ class MemoryManager { friend class PhysicalPage; friend class Region; friend class VMObject; - friend ByteBuffer procfs$mm(); + friend ByteBuffer procfs$mm(SynthFSInode&); public: static MemoryManager& the() PURE; |