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

Method memory_slot_allocator

vmm/src/memory_manager.rs:2274–2278  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2272 }
2273
2274 pub fn memory_slot_allocator(&mut self) -> MemorySlotAllocator {
2275 let memory_slot_free_list = Arc::clone(&self.memory_slot_free_list);
2276 let next_memory_slot = Arc::clone(&self.next_memory_slot);
2277 MemorySlotAllocator::new(next_memory_slot, memory_slot_free_list)
2278 }
2279
2280 pub fn allocate_memory_slot(&mut self) -> u32 {
2281 self.memory_slot_allocator().next_memory_slot()

Callers 3

add_vfio_deviceMethod · 0.80
add_vfio_user_deviceMethod · 0.80
allocate_memory_slotMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected