mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
Kernel: Make /proc/PID/fds display something useful for character devices.
This commit is contained in:
parent
786b903d62
commit
e6fc84e234
14 changed files with 46 additions and 6 deletions
|
@ -10,6 +10,7 @@ public:
|
|||
explicit MasterPTY(unsigned index);
|
||||
virtual ~MasterPTY() override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual ssize_t read(Process&, byte*, size_t) override;
|
||||
virtual ssize_t write(Process&, const byte*, size_t) override;
|
||||
virtual bool can_read(Process&) const override;
|
||||
|
@ -21,6 +22,9 @@ public:
|
|||
void on_slave_write(const byte*, size_t);
|
||||
|
||||
private:
|
||||
// ^CharacterDevice
|
||||
virtual const char* class_name() const override { return "MasterPTY"; }
|
||||
|
||||
SlavePTY& m_slave;
|
||||
unsigned m_index;
|
||||
DoubleBuffer m_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue