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:
parent
5c924d395f
commit
45f97c1096
4 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue