memobj_create_wrapped()

Create a memory object handle that wraps existing memory

Synopsis:

#include <memobj/wrap.h>
errno_t memobj_create_wrapped(struct memobj **obj_out, const struct memobj_wrap_attr *attr)

Arguments:

obj_out
A pointer to a location where this function, on success, stores a handle to the new memory object.
attr
A pointer to structure describing the requested object attributes.

Library:

libmemobj

Description:

The memobj_create_wrapped() function creates a memory object handle that wraps existing memory.

Returns:

This function returns any error documented for mmap() or mlock(), as well as any of the following:

EOK
Success; *obj_out was filled.
EBADF
An invalid file descriptor was specified.
EINVAL
Invalid attributes.
EMFILE
The number of mapped regions is at its maximum limit (refer to the RLIMIT_AS and RLIMIT_DATA resources for setrlimit()).
ENOMEM
There isn't enough memory or address space.
Page updated: