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

Method allocate_io_addresses

vm-allocator/src/system.rs:100–108  ·  view source on GitHub ↗

Reserves a section of `size` bytes of IO address space.

(
        &mut self,
        address: Option<GuestAddress>,
        size: GuestUsize,
        align_size: Option<GuestUsize>,
    )

Source from the content-addressed store, hash-verified

98
99 /// Reserves a section of `size` bytes of IO address space.
100 pub fn allocate_io_addresses(
101 &mut self,
102 address: Option<GuestAddress>,
103 size: GuestUsize,
104 align_size: Option<GuestUsize>,
105 ) -> Option<GuestAddress> {
106 self.io_address_space
107 .allocate(address, size, Some(align_size.unwrap_or(0x1)))
108 }
109
110 /// Reserves a section of `size` bytes of platform MMIO address space.
111 pub fn allocate_platform_mmio_addresses(

Callers 5

allocate_barsMethod · 0.80
move_barMethod · 0.80
add_acpi_devicesMethod · 0.80
add_serial_deviceMethod · 0.80

Calls 1

allocateMethod · 0.80

Tested by

no test coverage detected