mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
21 lines
410 B
C++
21 lines
410 B
C++
#pragma once
|
|
|
|
#include <Kernel/Devices/Device.h>
|
|
#include <Kernel/VirtualAddress.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; }
|
|
};
|