1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

Kernel: Add Device base class for CharacterDevice.

..to prepare for adding a BlockDevice class.
This commit is contained in:
Andreas Kling 2019-02-16 00:47:20 +01:00
parent c6ca6522fc
commit 994279d56c
11 changed files with 113 additions and 94 deletions

View file

@ -1,20 +1,7 @@
#include "CharacterDevice.h"
#include <LibC/errno_numbers.h>
#pragma once
#include <Kernel/CharacterDevice.h>
CharacterDevice::~CharacterDevice()
{
}
RetainPtr<FileDescriptor> CharacterDevice::open(int& error, int options)
{
return VFS::the().open(*this, error, options);
}
void CharacterDevice::close()
{
}
int CharacterDevice::ioctl(Process&, unsigned, unsigned)
{
return -ENOTTY;
}