mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 21:45:08 +00:00
19 lines
375 B
C++
19 lines
375 B
C++
#pragma once
|
|
|
|
#include <Kernel/Devices/Device.h>
|
|
|
|
class BlockDevice : public Device {
|
|
public:
|
|
virtual ~BlockDevice() override;
|
|
|
|
virtual bool is_seekable() const override { return true; }
|
|
|
|
protected:
|
|
BlockDevice(unsigned major, unsigned minor)
|
|
: Device(major, minor)
|
|
{
|
|
}
|
|
|
|
private:
|
|
virtual bool is_block_device() const final { return true; }
|
|
};
|