memobj_unmap()

Unmaps a graphics memory object from a process's virtual memory

Synopsis:

#include <memobj/virtmem.h>
void memobj_unmap(struct memobj *obj, int pid, void *vaddr)

Arguments:

obj
A handle to the memory object to be unmapped.
pid
The PID passed to memobj_map().
vaddr
The address given by memobj_map().

Library:

libmemobj

Description:

The memobj_unmap() function Unmaps a graphics memory object from a process's virtual memory.

The parameters must refer to a mapping created with memobj_map(). If multiple memobj_map() calls returned the same address, these mappings are reference counted. The mappings are only deleted when the same number of corresponding memobj_unmap() have been made.

Page updated: