1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:48:13 +00:00
serenity/Kernel/TTY
Tom f98ca35b83 Kernel: Improve ProcFS behavior in low memory conditions
When ProcFS could no longer allocate KBuffer objects to serve calls to
read, it would just return 0, indicating EOF. This then triggered
parsing errors because code assumed it read the file.

Because read isn't supposed to return ENOMEM, change ProcFS to populate
the file data upon file open or seek to the beginning. This also means
that calls to open can now return ENOMEM if needed. This allows the
caller to either be able to successfully open the file and read it, or
fail to open it in the first place.
2021-01-03 22:12:19 +01:00
..
MasterPTY.cpp Kernel: Move block condition evaluation out of the Scheduler 2020-11-30 13:17:02 +01:00
MasterPTY.h Kernel: Add a method to determine the desired permissions of a Device 2020-12-27 23:07:44 +01:00
PTYMultiplexer.cpp Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
PTYMultiplexer.h Kernel: Add a method to determine the desired permissions of a Device 2020-12-27 23:07:44 +01:00
SlavePTY.cpp Kernel: Move block condition evaluation out of the Scheduler 2020-11-30 13:17:02 +01:00
SlavePTY.h Kernel: Move block condition evaluation out of the Scheduler 2020-11-30 13:17:02 +01:00
TTY.cpp Everywhere: Re-format with clang-format-11 2020-12-31 21:51:00 +01:00
TTY.h Kernel: Add a method to determine the desired permissions of a Device 2020-12-27 23:07:44 +01:00
VirtualConsole.cpp Kernel: Make copy_to/from_user safe and remove unnecessary checks 2020-09-13 21:19:15 +02:00
VirtualConsole.h Kernel: Make copy_to/from_user safe and remove unnecessary checks 2020-09-13 21:19:15 +02:00