1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 02:12:06 +00:00
serenity/Kernel/Devices
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
..
HID Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
AsyncDeviceRequest.cpp Kernel: Convert Processor::in_irq() to static current_in_irq() 2021-08-23 00:02:09 +02:00
AsyncDeviceRequest.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
BlockDevice.cpp Kernel: Make Device request creation return KResultOr 2021-09-07 16:42:03 +02:00
BlockDevice.h Kernel/Storage: Implement basic AHCI hotplug support 2021-09-08 00:42:20 +02:00
CharacterDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CharacterDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Device.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
Device.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
FullDevice.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
FullDevice.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
KCOVDevice.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
KCOVDevice.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
KCOVInstance.cpp Kernel/KCOV: Use TRY() in KCOVInstance::buffer_allocate() 2021-09-06 20:33:35 +02:00
KCOVInstance.h Kernel/KCOV: Bring closer to typical SerenityOS coding style 2021-09-06 01:55:27 +02:00
MemoryDevice.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
MemoryDevice.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
NullDevice.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
NullDevice.h Kernel/Devices: Remove required_mode and device_name methods 2021-09-08 00:42:20 +02:00
PCISerialDevice.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
PCISerialDevice.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
PCSpeaker.cpp Kernel: Move special sections into Sections.h 2021-06-24 00:38:23 +02:00
PCSpeaker.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RandomDevice.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
RandomDevice.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
SB16.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
SB16.h Kernel/Devices: Remove required_mode and device_name methods 2021-09-08 00:42:20 +02:00
SerialDevice.cpp Kernel/Devices: Remove required_mode and device_name methods 2021-09-08 00:42:20 +02:00
SerialDevice.h Kernel/Devices: Remove required_mode and device_name methods 2021-09-08 00:42:20 +02:00
VMWareBackdoor.cpp Everywhere: Replace AK::Singleton => Singleton 2021-08-08 00:03:45 +02:00
VMWareBackdoor.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ZeroDevice.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
ZeroDevice.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00