serenity/Kernel/TTY
Andreas Kling 1cca5142af Kernel: Make DoubleBuffer use a KBuffer instead of kmalloc()ing
Background: DoubleBuffer is a handy buffer class in the kernel that
allows you to keep writing to it from the "outside" while the "inside"
reads from it. It's used for things like LocalSocket and PTY's.
Internally, it has a read buffer and a write buffer, but the two will
swap places when the read buffer is exhausted (by reading from it.)

Before this patch, it was internally implemented as two Vector<u8>
that we would swap between when the reader side had exhausted the data
in the read buffer. Now instead we preallocate a large KBuffer (64KB*2)
on DoubleBuffer construction and use that throughout its lifetime.

This removes all the kmalloc heap traffic caused by DoubleBuffers :^)
2019-10-18 14:55:04 +02:00
..
MasterPTY.cpp Kernel: Make DoubleBuffer use a KBuffer instead of kmalloc()ing 2019-10-18 14:55:04 +02:00
MasterPTY.h Kernel: Customize absolute_path() for more file types 2019-08-11 16:30:43 +02:00
PTYMultiplexer.cpp FileDescription: Disallow construction with a null File 2019-08-11 09:33:31 +02:00
PTYMultiplexer.h AK: Rename the common integer typedefs to make it obvious what they are. 2019-07-03 21:20:13 +02:00
SlavePTY.cpp Kernel: Keep TTY names in character buffers instead of Strings 2019-10-18 14:13:43 +02:00
SlavePTY.h Kernel: Keep TTY names in character buffers instead of Strings 2019-10-18 14:13:43 +02:00
TTY.cpp Kernel: Keep TTY names in character buffers instead of Strings 2019-10-18 14:13:43 +02:00
TTY.h Kernel: Keep TTY names in character buffers instead of Strings 2019-10-18 14:13:43 +02:00
VirtualConsole.cpp Kernel: VirtualConsole can use kmalloc_eternal() for permanent stuff 2019-10-18 14:14:54 +02:00
VirtualConsole.h Kernel: Keep TTY names in character buffers instead of Strings 2019-10-18 14:13:43 +02:00