Function devices::virtio::console::handle_input
source · fn handle_input(
interrupt: &Interrupt,
buffer: &mut VecDeque<u8>,
receive_queue: &Arc<Mutex<Queue>>
) -> Result<(), ConsoleError>
Expand description
Checks for input from buffer
and transfers it to the receive queue, if any.
§Arguments
interrupt
- Interrupt used to signal that the queue has been usedbuffer
- Ring buffer providing data to put into the guestreceive_queue
- The receive virtio Queue