
FileSystem -> FS SyntheticFileSystem -> SynthFS ProcFileSystem -> ProcFS Ext2FileSystem -> Ext2FS Ext2Inode -> Ext2FSInode
26 lines
486 B
C++
26 lines
486 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <VirtualFileSystem/SyntheticFileSystem.h>
|
|
|
|
class Process;
|
|
|
|
class ProcFS final : public SynthFS {
|
|
public:
|
|
static ProcFS& the() PURE;
|
|
|
|
virtual ~ProcFS() override;
|
|
static RetainPtr<ProcFS> create();
|
|
|
|
virtual bool initialize() override;
|
|
virtual const char* class_name() const override;
|
|
|
|
void addProcess(Process&);
|
|
void removeProcess(Process&);
|
|
|
|
private:
|
|
ProcFS();
|
|
|
|
HashMap<pid_t, InodeIndex> m_pid2inode;
|
|
};
|
|
|