pub unsafe extern "C" fn memory_region_init_ram_ptr(
    mr: *mut MemoryRegion,
    owner: *mut Object,
    name: *const c_char,
    size: u64,
    ptr: *mut c_void
)
Expand description

memory_region_init_ram_ptr: Initialize RAM memory region from a user-provided pointer. Accesses into the region will modify memory directly.

@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: size of the region. @ptr: memory to be mapped; must contain at least @size bytes.