Kernel: Make tty use the new byte ring buffer

This commit is contained in:
2026-02-28 14:53:15 +02:00
parent a602753bda
commit eeef945c25
2 changed files with 50 additions and 63 deletions

View File

@@ -3,6 +3,7 @@
#include <BAN/Array.h>
#include <kernel/Device/Device.h>
#include <kernel/Lock/SpinLock.h>
#include <kernel/Memory/ByteRingBuffer.h>
#include <kernel/Terminal/TerminalDriver.h>
#include <kernel/ThreadBlocker.h>
#include <LibInput/KeyEvent.h>
@@ -102,8 +103,7 @@ namespace Kernel
struct Buffer
{
BAN::Array<uint8_t, 1024> buffer;
size_t bytes { 0 };
BAN::UniqPtr<ByteRingBuffer> buffer;
bool flush { false };
ThreadBlocker thread_blocker;
};