Kernel: Remove storage devices after unplugging them

This commit is contained in:
2025-02-07 18:04:54 +02:00
parent 26d2a4420e
commit 267fdf9fa1
5 changed files with 38 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ namespace Kernel
virtual BAN::ErrorOr<void> fsync_impl() final override { return BAN::Error::from_errno(EINVAL); }
};
class BlockDevice : public Device
class BlockDevice : public Device, public BAN::Weakable<BlockDevice>
{
public:
virtual BAN::ErrorOr<void> read_blocks(uint64_t first_block, size_t block_count, BAN::ByteSpan) = 0;