mirror of
https://github.com/RGBCube/serenity
synced 2025-09-16 13:36:17 +00:00
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.
This commit is contained in:
parent
9454c5dd52
commit
f7cc454162
8 changed files with 121 additions and 29 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue