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

Method read_reg

pci/src/configuration.rs:647–649  ·  view source on GitHub ↗

Reads a 32bit register from `reg_idx` in the register map.

(&self, reg_idx: usize)

Source from the content-addressed store, hash-verified

645
646 /// Reads a 32bit register from `reg_idx` in the register map.
647 pub fn read_reg(&self, reg_idx: usize) -> u32 {
648 *(self.registers.get(reg_idx).unwrap_or(&0xffff_ffff))
649 }
650
651 /// Writes a 32bit register to `reg_idx` in the register map.
652 pub fn write_reg(&mut self, reg_idx: usize, value: u32) {

Callers 8

read_config_registerMethod · 0.45
read_config_registerMethod · 0.45
read_config_registerMethod · 0.45
read_config_registerMethod · 0.45
read_config_registerMethod · 0.45
add_capabilityFunction · 0.45
class_codeFunction · 0.45
read_config_registerMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 2

add_capabilityFunction · 0.36
class_codeFunction · 0.36