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

Method write

devices/src/legacy/serial.rs:317–325  ·  view source on GitHub ↗
(&mut self, _base: u64, offset: u64, data: &[u8])

Source from the content-addressed store, hash-verified

315 }
316
317 fn write(&mut self, _base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> {
318 if data.len() != 1 {
319 return None;
320 }
321
322 self.handle_write(offset as u8, data[0]).ok();
323
324 None
325 }
326}
327
328impl Snapshottable for Serial {

Callers 7

triggerMethod · 0.45
serial_outputFunction · 0.45
serial_inputFunction · 0.45
serial_thrFunction · 0.45
serial_dlabFunction · 0.45
serial_modemFunction · 0.45
serial_scratchFunction · 0.45

Calls 3

okMethod · 0.80
lenMethod · 0.45
handle_writeMethod · 0.45

Tested by 6

serial_outputFunction · 0.36
serial_inputFunction · 0.36
serial_thrFunction · 0.36
serial_dlabFunction · 0.36
serial_modemFunction · 0.36
serial_scratchFunction · 0.36