1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 17:25:06 +00:00

Implement /proc/PID/vm.

Refactored SyntheticFileSystem to maintain an arbitrary directory structure.
ProcFileSystem creates a directory entry in /proc for each new process.
This commit is contained in:
Andreas Kling 2018-10-26 17:42:12 +02:00
parent 10347b9ae8
commit a32b3a3ddf
15 changed files with 217 additions and 39 deletions

View file

@ -108,9 +108,7 @@ static void init_stage2()
vfs->mountRoot(e2fs.copyRef());
auto procfs = ProcFileSystem::create();
procfs->initialize();
vfs->mount(procfs.copyRef(), "/proc");
vfs->mount(ProcFileSystem::the(), "/proc");
#endif
@ -200,6 +198,9 @@ void init()
kprintf("%u kB base memory\n", base_memory);
kprintf("%u kB extended memory\n", ext_memory);
auto procfs = ProcFileSystem::create();
procfs->initialize();
Task::initialize();
Task::createKernelTask(undertaker_main, "undertaker");