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

memory_region_init_ram_device_ptr: Initialize RAM device memory region from a user-provided pointer.

A RAM device represents a mapping to a physical device, such as to a PCI MMIO BAR of an vfio-pci assigned device. The memory region may be mapped into the VM address space and access to the region will modify memory directly. However, the memory region should not be included in a memory dump (device may not be enabled/mapped at the time of the dump), and operations incompatible with manipulating MMIO should be avoided. Replaces skip_dump flag.

@mr: the #MemoryRegion to be initialized. @owner: the object that tracks the region’s reference count @name: the name of the region. @size: size of the region. @ptr: memory to be mapped; must contain at least @size bytes.