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

Method read_config

pci/src/vfio.rs:392–394  ·  view source on GitHub ↗
(&self, offset: u32, data: &mut [u8])

Source from the content-addressed store, hash-verified

390 }
391
392 fn read_config(&self, offset: u32, data: &mut [u8]) {
393 self.region_read(VFIO_PCI_CONFIG_REGION_INDEX, offset.into(), data.as_mut());
394 }
395
396 fn write_config(&self, offset: u32, data: &[u8]) {
397 self.region_write(VFIO_PCI_CONFIG_REGION_INDEX, offset.into(), data);

Callers 3

read_config_byteMethod · 0.45
read_config_wordMethod · 0.45
read_config_dwordMethod · 0.45

Implementers 2

vfio.rspci/src/vfio.rs
vfio_user.rspci/src/vfio_user.rs

Calls 1

region_readMethod · 0.45

Tested by

no test coverage detected