[−][src]Function sunrise_libuser::syscalls::unmap_shared_memory
pub unsafe fn unmap_shared_memory(
handle: &SharedMemory,
addr: usize,
size: usize
) -> Result<(), KernelError>
Unmaps a shared memory.
Unmaps a shared memory mapping at the given address.
Safety
This function unmaps the memory, invalidating any pointer to the given region. The user must take care that no pointers point to this region before calling this function.
Errors:
- addr must point to a mapping backed by the given handle
- Size must be equal to the size of the backing shared memory handle.