Function panda_sys::memory_region_init_rom
source · pub unsafe extern "C" fn memory_region_init_rom(
mr: *mut MemoryRegion,
owner: *mut Object,
name: *const c_char,
size: u64,
errp: *mut *mut Error
)
Expand description
memory_region_init_rom: Initialize a ROM memory region.
This has the same effect as calling memory_region_init_ram() and then marking the resulting region read-only with memory_region_set_readonly().
@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. @errp: pointer to Error*, to store an error if it happens.