Kernel: Move FS-related files into Kernel/FileSystem/

This commit is contained in:
Andreas Kling 2019-04-03 12:25:24 +02:00
commit f9864940eb
Notes: sideshowbarker 2024-07-19 14:50:50 +09:00
28 changed files with 27 additions and 26 deletions

View file

@ -0,0 +1,29 @@
#pragma once
#include <AK/Types.h>
#include <Kernel/FileSystem/SyntheticFileSystem.h>
class Process;
class SlavePTY;
class DevPtsFS final : public SynthFS {
public:
[[gnu::pure]] static DevPtsFS& the();
virtual ~DevPtsFS() override;
static Retained<DevPtsFS> create();
virtual bool initialize() override;
virtual const char* class_name() const override;
void register_slave_pty(SlavePTY&);
void unregister_slave_pty(SlavePTY&);
private:
DevPtsFS();
Retained<SynthFSInode> create_slave_pty_device_file(unsigned index);
HashTable<SlavePTY*> m_slave_ptys;
};