MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / thr_empty

Method thr_empty

devices/src/legacy/serial.rs:215–221  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

213 }
214
215 fn thr_empty(&mut self) -> Result<()> {
216 if self.is_thr_intr_enabled() {
217 self.add_intr_bit(IIR_THR_BIT);
218 self.trigger_interrupt()?;
219 }
220 Ok(())
221 }
222
223 fn recv_data(&mut self) -> Result<()> {
224 if self.is_recv_intr_enabled() {

Callers 1

handle_writeMethod · 0.80

Calls 3

is_thr_intr_enabledMethod · 0.80
add_intr_bitMethod · 0.80
trigger_interruptMethod · 0.45

Tested by

no test coverage detected