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:
parent
c6ca6522fc
commit
994279d56c
11 changed files with 113 additions and 94 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue