1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:17:35 +00:00

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

This commit is contained in:
Andreas Kling 2019-04-03 12:25:24 +02:00
parent f6d0e1052b
commit f9864940eb
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;
};