Scroll to navigation

rpma_ep_get_fd(3) RPMA Programmer's Manual rpma_ep_get_fd(3)

NAME

rpma_ep_get_fd - get a file descriptor of the endpoint

SYNOPSIS


#include <librpma.h>
struct rpma_ep;
int rpma_ep_get_fd(const struct rpma_ep *ep, int *fd);

DESCRIPTION

rpma_ep_get_fd() gets the file descriptor of the endpoint.

RETURN VALUE

The rpma_ep_get_fd() function returns 0 on success or a negative error code on failure. rpma_ep_get_fd() does not set *fd value on failure.

ERRORS

rpma_ep_get_fd() can fail with the following error:

RPMA_E_INVAL - ep or fd is NULL

SEE ALSO

rpma_ep_listen(3), librpma(7) and https://pmem.io/rpma/

10 January 2023 RPMA