mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:07:44 +00:00
Kernel: Add empty BlockDevice class.
This commit is contained in:
parent
994279d56c
commit
2dc7c5a7b0
4 changed files with 17 additions and 2 deletions
5
Kernel/BlockDevice.cpp
Normal file
5
Kernel/BlockDevice.cpp
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#include <Kernel/BlockDevice.h>
|
||||||
|
|
||||||
|
BlockDevice::~BlockDevice()
|
||||||
|
{
|
||||||
|
}
|
11
Kernel/BlockDevice.h
Normal file
11
Kernel/BlockDevice.h
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <Kernel/Device.h>
|
||||||
|
|
||||||
|
class BlockDevice : public Device {
|
||||||
|
public:
|
||||||
|
virtual ~BlockDevice() override;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
BlockDevice(unsigned major, unsigned minor) : Device(major, minor) { }
|
||||||
|
};
|
|
@ -1,5 +1,3 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/CharacterDevice.h>
|
||||||
|
|
||||||
CharacterDevice::~CharacterDevice()
|
CharacterDevice::~CharacterDevice()
|
||||||
|
|
|
@ -39,6 +39,7 @@ VFS_OBJS = \
|
||||||
DiskDevice.o \
|
DiskDevice.o \
|
||||||
Device.o \
|
Device.o \
|
||||||
CharacterDevice.o \
|
CharacterDevice.o \
|
||||||
|
BlockDevice.o \
|
||||||
NullDevice.o \
|
NullDevice.o \
|
||||||
FullDevice.o \
|
FullDevice.o \
|
||||||
ZeroDevice.o \
|
ZeroDevice.o \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue