Scroll to navigation

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

NAME

rpma_conn_completion_wait - wait for completions

SYNOPSIS

      #include <librpma.h>
      struct rpma_conn;
      int rpma_conn_completion_wait(struct rpma_conn *conn);

DESCRIPTION

rpma_conn_completion_wait() waits for incoming completions. If it succeeds the completions can be collected using rpma_conn_completion_get().

RETURN VALUE

The rpma_conn_completion_wait() function returns 0 on success or a negative error code on failure.

ERRORS

rpma_conn_completion_wait() can fail with the following errors:
  • RPMA_E_INVAL - conn is NULL
  • RPMA_E_PROVIDER - ibv_req_notify_cq(3) failed with a provider error
  • RPMA_E_NO_COMPLETION - no completions available

SEE ALSO

rpma_conn_get_completion_fd(3), rpma_conn_completion_get(3), rpma_conn_req_connect(3), librpma(7) and https://pmem.io/rpma/
21 October 2020 RPMA