pub unsafe extern "C" fn memory_region_init_ram_from_file(
    mr: *mut MemoryRegion,
    owner: *mut Object,
    name: *const c_char,
    size: u64,
    share: bool,
    path: *const c_char,
    errp: *mut *mut Error
)
Expand description

memory_region_init_ram_from_file: Initialize RAM memory region with a mmap-ed backend.

@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. @share: %true if memory must be mmaped with the MAP_SHARED flag @path: the path in which to allocate the RAM. @errp: pointer to Error*, to store an error if it happens.