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

Add basic character device support. Start with null and zero.

This commit is contained in:
Andreas Kling 2018-10-14 02:59:22 +02:00
parent fa3b11ac64
commit 93556d6743
14 changed files with 157 additions and 2 deletions

View file

@ -0,0 +1,13 @@
#pragma once
#include "CharacterDevice.h"
class ZeroDevice final : public CharacterDevice {
public:
ZeroDevice();
virtual ~ZeroDevice();
ssize_t read(byte* buffer, size_t bufferSize) override;
ssize_t write(const byte* buffer, size_t bufferSize) override;
};