1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Start adding a basic /proc filesystem and a "ps" utility.

This commit is contained in:
Andreas Kling 2018-10-23 11:57:38 +02:00
parent 98f76f0153
commit ed2422d7af
13 changed files with 139 additions and 23 deletions

View file

@ -25,6 +25,7 @@
#include "MemoryManager.h"
#include <ELFLoader/ELFLoader.h>
#include "Console.h"
#include "ProcFileSystem.h"
#define TEST_VFS
//#define TEST_ELF_LOADER
@ -132,7 +133,9 @@ static void init_stage2()
vfs->mountRoot(e2fs.copyRef());
//vfs->listDirectory("/");
auto procfs = ProcFileSystem::create();
procfs->initialize();
vfs->mount(procfs.copyRef(), "/proc");
{
auto motdFile = vfs->open("/motd.txt");