ladybird/Kernel/Devices/BlockDevice.h
2019-04-28 15:02:55 +02:00

17 lines
393 B
C++

#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; }
};