[−][src]Function sunrise_libuser::syscalls::map_mmio_region
pub fn map_mmio_region(
physical_address: usize,
size: usize,
virtual_address: usize,
writable: bool
) -> Result<(), KernelError>
Maps a physical region in the address space of the process.
Errors
- InvalidAddress:
virtual_addressis already occupied.virtual_addressis not PAGE_SIZE aligned.physical_addresspoints to a physical region in DRAM (it's not MMIO).
- InvalidLength:
lengthis not PAGE_SIZE aligned.lengthis zero.