memobj_close()

Close a handle for a memory object

Synopsis:

#include <memobj/handles.h>
void memobj_close(struct memobj *obj)

Arguments:

obj
The memory object to close. If NULL, this function returns without doing anything.

Library:

libmemobj

Description:

The memobj_close() function closes a handle for a memory object. All locks and mappings created from this handle are destroyed. This call releases a file descriptor associated with this handle. If the memory object handle was created to wrap a file descriptor, the original file descriptor isn't released by a memobj_close() call.

If the memory object handle was created with memobj_create_wrapped(), and the client has specified the destructor function, this function is called when the last reference to the memory object is closed.

Page updated: