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

Method free_bars

devices/src/pvmemcontrol.rs:761–771  ·  view source on GitHub ↗
(
        &mut self,
        _allocator: &mut SystemAllocator,
        mmio32_allocator: &mut AddressAllocator,
        _mmio64_allocator: &mut AddressAllocator,
    )

Source from the content-addressed store, hash-verified

759 }
760
761 fn free_bars(
762 &mut self,
763 _allocator: &mut SystemAllocator,
764 mmio32_allocator: &mut AddressAllocator,
765 _mmio64_allocator: &mut AddressAllocator,
766 ) -> Result<(), PciDeviceError> {
767 for bar in self.bar_regions.drain(..) {
768 mmio32_allocator.free(GuestAddress(bar.addr()), bar.size());
769 }
770 Ok(())
771 }
772
773 fn move_bar(&mut self, old_base: u64, new_base: u64) -> result::Result<(), io::Error> {
774 for bar in self.bar_regions.iter_mut() {

Callers

nothing calls this directly

Calls 3

freeMethod · 0.45
addrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected