Function panda_sys::memory_region_init_resizeable_ram[][src]

pub unsafe extern "C" fn memory_region_init_resizeable_ram(
    mr: *mut MemoryRegion,
    owner: *mut Object,
    name: *const c_char,
    size: u64,
    max_size: u64,
    resized: Option<unsafe extern "C" fn(arg1: *const c_char, length: u64, host: *mut c_void)>,
    errp: *mut *mut Error
)
Expand description

memory_region_init_resizeable_ram: Initialize memory region with resizeable RAM. Accesses into the region will modify memory directly. Only an initial portion of this RAM is actually used. The used size can change across reboots.

@mr: the #MemoryRegion to be initialized. @owner: the object that tracks the region’s reference count @name: Region name, becomes part of RAMBlock name used in migration stream must be unique within any device @size: used size of the region. @max_size: max size of the region. @resized: callback to notify owner about used size change. @errp: pointer to Error*, to store an error if it happens.