mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
Add the basic character devices to kernel.
This commit is contained in:
parent
12e515735b
commit
aec8ab0a60
13 changed files with 52 additions and 58 deletions
|
@ -1,8 +1,7 @@
|
|||
#include "ZeroDevice.h"
|
||||
#include "Limits.h"
|
||||
#include <AK/StdLib.h>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <AK/kstdio.h>
|
||||
|
||||
ZeroDevice::ZeroDevice()
|
||||
{
|
||||
|
@ -14,7 +13,7 @@ ZeroDevice::~ZeroDevice()
|
|||
|
||||
Unix::ssize_t ZeroDevice::read(byte* buffer, Unix::size_t bufferSize)
|
||||
{
|
||||
printf("read from zero device\n");
|
||||
kprintf("ZeroDevice: read from zero\n");
|
||||
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
||||
memset(buffer, 0, count);
|
||||
return count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue