mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Andreas Kling](/assets/img/avatar_default.png)
This avoids having to do a separate MM.mapRegionsForTask() pass. Also, more Task => Process renaming that I apparently hadn't saved yet.
27 lines
537 B
C++
27 lines
537 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <VirtualFileSystem/SyntheticFileSystem.h>
|
|
|
|
class Process;
|
|
|
|
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(Process&);
|
|
void removeProcess(Process&);
|
|
|
|
private:
|
|
ProcFileSystem();
|
|
|
|
HashMap<pid_t, InodeIndex> m_pid2inode;
|
|
};
|
|
|