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

Method read

vm-device/src/bus.rs:43–47  ·  view source on GitHub ↗

Reads at `offset` from this device

(&self, base: u64, offset: u64, data: &mut [u8])

Source from the content-addressed store, hash-verified

41impl<B: BusDevice> BusDeviceSync for Mutex<B> {
42 /// Reads at `offset` from this device
43 fn read(&self, base: u64, offset: u64, data: &mut [u8]) {
44 self.lock()
45 .expect("Failed to acquire device lock")
46 .read(base, offset, data);
47 }
48 /// Writes at `offset` into this device
49 fn write(&self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> {
50 self.lock()

Callers 5

first_beforeMethod · 0.45
insertMethod · 0.45
bus_read_writeFunction · 0.45
bus_read_write_valuesFunction · 0.45
busrange_cmpFunction · 0.45

Calls 2

resolveMethod · 0.80
iter_mutMethod · 0.80

Tested by 3

bus_read_writeFunction · 0.36
bus_read_write_valuesFunction · 0.36
busrange_cmpFunction · 0.36