Function panda_sys::memory_region_add_subregion[][src]

pub unsafe extern "C" fn memory_region_add_subregion(
    mr: *mut MemoryRegion,
    offset: hwaddr,
    subregion: *mut MemoryRegion
)
Expand description

memory_region_add_subregion: Add a subregion to a container.

Adds a subregion at @offset. The subregion may not overlap with other subregions (except for those explicitly marked as overlapping). A region may only be added once as a subregion (unless removed with memory_region_del_subregion()); use memory_region_init_alias() if you want a region to be a subregion in multiple locations.

@mr: the region to contain the new subregion; must be a container initialized with memory_region_init(). @offset: the offset relative to @mr where @subregion is added. @subregion: the subregion to be added.