[][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: