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

Kernel: Have devices automagically register themselves with the VFS.

This commit is contained in:
Andreas Kling 2019-02-17 10:38:07 +01:00
parent e74c833af3
commit b6bf26430d
4 changed files with 11 additions and 24 deletions

View file

@ -10,7 +10,6 @@ SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
{
set_uid(current->uid());
set_gid(current->gid());
VFS::the().register_device(*this);
DevPtsFS::the().register_slave_pty(*this);
set_size(80, 25);
}
@ -19,7 +18,6 @@ SlavePTY::~SlavePTY()
{
dbgprintf("~SlavePTY(%u)\n", m_index);
DevPtsFS::the().unregister_slave_pty(*this);
VFS::the().unregister_device(*this);
}
String SlavePTY::tty_name() const