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

Method write

pci/src/bus.rs:402–412  ·  view source on GitHub ↗
(&mut self, _base: u64, offset: u64, data: &[u8])

Source from the content-addressed store, hash-verified

400 }
401
402 fn write(&mut self, _base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> {
403 // `offset` is relative to 0xcf8
404 match offset {
405 o @ 0..=3 => {
406 self.set_config_address(o, data);
407 None
408 }
409 o @ 4..=7 => self.config_space_write(o - 4, data),
410 _ => None,
411 }
412 }
413}
414
415/// Emulates PCI memory-mapped configuration access mechanism.

Callers

nothing calls this directly

Calls 2

set_config_addressMethod · 0.80
config_space_writeMethod · 0.80

Tested by

no test coverage detected