Add primitive FIFO and hook it up to sys$pipe().

It's now possible to do this in bash:

cat kernel.map | fgrep List

This is very cool! :^)
This commit is contained in:
Andreas Kling 2018-11-12 01:28:46 +01:00
commit f1404aa948
Notes: sideshowbarker 2024-07-19 16:11:00 +09:00
13 changed files with 305 additions and 22 deletions

View file

@ -57,6 +57,13 @@ bool Scheduler::pick_next()
return true;
}
if (process.state() == Process::BlockedWrite) {
ASSERT(process.m_blocked_fd != -1);
if (process.m_file_descriptors[process.m_blocked_fd]->can_write())
process.unblock();
return true;
}
if (process.state() == Process::Skip1SchedulerPass) {
process.set_state(Process::Skip0SchedulerPasses);
return true;