mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 07:35:08 +00:00
Kernel: Create SelfTTYDevice class to help replace /dev/tty symlink
This will replace the /dev/tty symlink created by SystemServer, so instead of a symlink, a character device will be created. When doing read(2), write(2) and ioctl(2) on this device, it will "redirect" these operations to the attached TTY of the current process.
This commit is contained in:
parent
2fb9eb5257
commit
12867d60ad
4 changed files with 102 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
#include <Kernel/Devices/NullDevice.h>
|
||||
#include <Kernel/Devices/PCISerialDevice.h>
|
||||
#include <Kernel/Devices/RandomDevice.h>
|
||||
#include <Kernel/Devices/SelfTTYDevice.h>
|
||||
#include <Kernel/Devices/SerialDevice.h>
|
||||
#include <Kernel/Devices/VMWareBackdoor.h>
|
||||
#include <Kernel/Devices/ZeroDevice.h>
|
||||
|
@ -348,6 +349,7 @@ void init_stage2(void*)
|
|||
(void)ZeroDevice::must_create().leak_ref();
|
||||
(void)FullDevice::must_create().leak_ref();
|
||||
(void)RandomDevice::must_create().leak_ref();
|
||||
(void)SelfTTYDevice::must_create().leak_ref();
|
||||
PTYMultiplexer::initialize();
|
||||
|
||||
AudioManagement::the().initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue