1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00
serenity/Kernel/Storage
Liav A 3af70cb0fc Kernel/Devices: Abstract SysFS Device add/remove methods more properly
It is starting to get a little messy with how each device can try to add
or remove itself to either /sys/dev/block or /sys/dev/char directories.

To better do this, we introduce 4 virtual methods to take care of that,
so until we ensure all nodes in /sys/dev/block and /sys/dev/char are
actual symlinks, we allow the Device base class to call virtual methods
upon insertion or before being destroying, so it add itself elegantly to
either of these directories or remove itself when needed.

For special cases where we need to create symlinks, we have two virtual
methods to be called otherwise to do almost the same thing mentioned
before, but to use symlinks instead.
2022-07-19 11:02:37 +01:00
..
ATA Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00
NVMe Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00
Partition Kernel/Storage: Migrate the partition code to use the ErrorOr container 2022-04-28 22:13:54 +02:00
Ramdisk Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00
StorageController.cpp Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00
StorageController.h Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00
StorageDevice.cpp Kernel/Devices: Abstract SysFS Device add/remove methods more properly 2022-07-19 11:02:37 +01:00
StorageDevice.h Kernel/SysFS: Add /sys/devices/storage directory 2022-07-15 12:29:23 +02:00
StorageManagement.cpp Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00
StorageManagement.h Kernel/Storage: Add LUN address to each StorageDevice 2022-07-15 12:29:23 +02:00