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:
parent
f6d0e1052b
commit
f9864940eb
28 changed files with 27 additions and 26 deletions
29
Kernel/FileSystem/DevPtsFS.h
Normal file
29
Kernel/FileSystem/DevPtsFS.h
Normal 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;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue