[−][src]Function sunrise_libuser::syscalls::map_shared_memory
pub fn map_shared_memory(
handle: &SharedMemory,
addr: usize,
size: usize,
perm: MemoryPermissions
) -> Result<(), KernelError>
Maps a shared memory.
Maps a SharedMemory handle at the given address, with the given permission.
Errors
- addr must be page-aligned.
- size must be equal to the size of the backing shared memory handle.
- perm must be allowed.