serenity/Kernel/TTY
Liav A f5de4f24b2 Kernel/Devices: Defer creation of SysFS component after the constructor
Instead of doing so in the constructor, let's do immediately after the
constructor, so we can safely pass a reference of a Device, so the
SysFSDeviceComponent constructor can use that object to identify whether
it's a block device or a character device.
This allows to us to not hold a device in SysFSDeviceComponent with a
RefPtr.
Also, we also call the before_removing method in both SlavePTY::unref
and File::unref, so because Device has that method being overrided, it
can ensure the device is removed always cleanly.
2021-09-11 11:41:14 +02:00
..
ConsoleManagement.cpp Kernel: Rename ScopedSpinlock => SpinlockLocker 2021-08-22 03:34:10 +02:00
ConsoleManagement.h Kernel: Make all Spinlocks use u8 for storage, remove template 2021-09-05 20:46:02 +02:00
MasterPTY.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
MasterPTY.h Kernel/Devices: Remove required_mode and device_name methods 2021-09-08 00:42:20 +02:00
PTYMultiplexer.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
PTYMultiplexer.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
SlavePTY.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
SlavePTY.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
TTY.cpp Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
TTY.h Kernel/Devices: Remove required_mode and device_name methods 2021-09-08 00:42:20 +02:00
VirtualConsole.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
VirtualConsole.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00