ladybird/Kernel/ProcFileSystem.h
Andreas Kling 2529925fe9 Some more renaming:
FileSystem -> FS
SyntheticFileSystem -> SynthFS
ProcFileSystem -> ProcFS
Ext2FileSystem -> Ext2FS
Ext2Inode -> Ext2FSInode
2018-11-15 17:13:10 +01:00

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;
};