memobj_get_fd()
Determine the file descriptor of a shared memory object
Synopsis:
#include <memobj/handles.h>
int memobj_get_fd(const struct memobj *obj)
Arguments:
- obj
- A handle to a memory object.
Library:
libmemobjDescription:
The memobj_get_fd() function determines the file descriptor of a shared memory object. If there's no usable file descriptor, the function returns -1 (NOFD).
Note:
It is unspecified whether memobj_share() creates a new fd. Don't close the returned file descriptor or use it after memobj_close().
Page updated:
