Kernel: Make VirtIOConsole block when VirtIOQueue is full

This commit is contained in:
Sahan Fernando 2021-04-18 18:10:34 +10:00 committed by Andreas Kling
commit 45f97c1096
Notes: sideshowbarker 2024-07-18 19:28:13 +09:00
4 changed files with 13 additions and 1 deletions

View file

@ -145,4 +145,9 @@ void VirtIOQueue::pop_buffer(u16 descriptor_index)
m_free_head = descriptor_index;
}
bool VirtIOQueue::can_write() const
{
return m_free_buffers > 0;
}
}