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

Method dma_unmap

pci/src/vfio_user.rs:253–262  ·  view source on GitHub ↗
(
        &mut self,
        region: &GuestRegionMmap<AtomicBitmap>,
    )

Source from the content-addressed store, hash-verified

251 }
252
253 pub fn dma_unmap(
254 &mut self,
255 region: &GuestRegionMmap<AtomicBitmap>,
256 ) -> Result<(), VfioUserPciDeviceError> {
257 self.client
258 .lock()
259 .unwrap()
260 .dma_unmap(region.start_addr().raw_value(), region.len())
261 .map_err(VfioUserPciDeviceError::DmaUnmap)
262 }
263}
264
265impl BusDevice for VfioUserPciDevice {

Callers 1

unmapMethod · 0.45

Calls 2

start_addrMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected