mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
fb7b4caa57
This is really a basic support for AHCI hotplug events, so we know how to add a node representing the device in /sys/dev/block and removing it according to the event type (insertion/removal). This change doesn't take into account what happens if the device was mounted or a read/write operation is being handled. For this to work correctly, StorageManagement now uses the Singleton container, as it might be accessed simultaneously from many CPUs for hotplug events. DiskPartition holds a WeakPtr instead of a RefPtr, to allow removal of a StorageDevice object from the heap. StorageDevices are now stored and being referenced to via an IntrusiveList to make it easier to remove them on hotplug event. In future changes, all of the stated above might change, but for now, this commit represents the least amount of changes to make everything to work correctly. |
||
---|---|---|
.. | ||
Partition | ||
AHCI.h | ||
AHCIController.cpp | ||
AHCIController.h | ||
AHCIPort.cpp | ||
AHCIPort.h | ||
AHCIPortHandler.cpp | ||
AHCIPortHandler.h | ||
ATA.h | ||
BMIDEChannel.cpp | ||
BMIDEChannel.h | ||
IDEChannel.cpp | ||
IDEChannel.h | ||
IDEController.cpp | ||
IDEController.h | ||
PATADiskDevice.cpp | ||
PATADiskDevice.h | ||
RamdiskController.cpp | ||
RamdiskController.h | ||
RamdiskDevice.cpp | ||
RamdiskDevice.h | ||
SATADiskDevice.cpp | ||
SATADiskDevice.h | ||
StorageController.h | ||
StorageDevice.cpp | ||
StorageDevice.h | ||
StorageManagement.cpp | ||
StorageManagement.h |