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

Method add_external_mapping

virtio-devices/src/iommu.rs:1219–1221  ·  view source on GitHub ↗
(&mut self, device_id: u32, mapping: Arc<dyn ExternalDmaMapping>)

Source from the content-addressed store, hash-verified

1217 }
1218
1219 pub fn add_external_mapping(&mut self, device_id: u32, mapping: Arc<dyn ExternalDmaMapping>) {
1220 self.ext_mapping.lock().unwrap().insert(device_id, mapping);
1221 }
1222
1223 #[cfg(fuzzing)]
1224 pub fn wait_for_epoll_threads(&mut self) {

Callers 2

add_vfio_deviceMethod · 0.80
add_virtio_pci_deviceMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected