1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

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
parent 5c924d395f
commit 45f97c1096
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;
}
}