MCPcopy Index your code
hub / github.com/cloud-hypervisor/cloud-hypervisor / insert

Method insert

vmm/src/device_tree.rs:71–73  ·  view source on GitHub ↗
(&mut self, k: String, v: DeviceNode)

Source from the content-addressed store, hash-verified

69 self.0.get_mut(k)
70 }
71 pub fn insert(&mut self, k: String, v: DeviceNode) -> Option<DeviceNode> {
72 self.0.insert(k, v)
73 }
74 pub fn remove(&mut self, k: &str) -> Option<DeviceNode> {
75 self.0.remove(k)
76 }

Callers 15

validateMethod · 0.45
validate_identifierMethod · 0.45
newMethod · 0.45
create_devicesMethod · 0.45
create_fw_cfg_deviceMethod · 0.45
add_pci_devicesMethod · 0.45
add_acpi_devicesMethod · 0.45
add_legacy_devicesMethod · 0.45
add_serial_deviceMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_device_treeFunction · 0.36