blob: 954c4e4deab54159bf5b8851df8fe46593945b8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <AK/Types.h>
#include <VirtualFileSystem/SyntheticFileSystem.h>
class Task;
class ProcFileSystem final : public SyntheticFileSystem {
public:
static ProcFileSystem& the() PURE;
virtual ~ProcFileSystem() override;
static RetainPtr<ProcFileSystem> create();
virtual bool initialize() override;
virtual const char* className() const override;
void addProcess(Task&);
void removeProcess(Task&);
private:
ProcFileSystem();
HashMap<pid_t, InodeIndex> m_pid2inode;
};
|