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

Method read_config_byte

pci/src/vfio.rs:369–373  ·  view source on GitHub ↗
(&self, offset: u32)

Source from the content-addressed store, hash-verified

367
368pub(crate) trait Vfio: Send + Sync {
369 fn read_config_byte(&self, offset: u32) -> u8 {
370 let mut data: [u8; 1] = [0];
371 self.read_config(offset, &mut data);
372 data[0]
373 }
374
375 fn read_config_word(&self, offset: u32) -> u16 {
376 let mut data: [u8; 2] = [0, 0];

Callers 2

get_msix_cap_idxMethod · 0.80
parse_capabilitiesMethod · 0.80

Implementers 2

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

Calls 1

read_configMethod · 0.45

Tested by

no test coverage detected