blob: d76d90614d08a3c2c8ae46a42c9d61e3711b69cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <Kernel/Devices/Device.h>
#include <Kernel/LinearAddress.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; }
};
|