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:
parent
98f76f0153
commit
ed2422d7af
13 changed files with 139 additions and 23 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue