rpma_conn_completion_wait - wait for a completion (deprecated)
#include <librpma.h>
struct rpma_conn;
int rpma_conn_completion_wait(struct rpma_conn *conn);
rpma_conn_completion_wait() waits for an incoming completion. If it succeeds the completion can be collected using rpma_conn_completion_get().
The rpma_conn_completion_wait() function returns 0 on success or a negative error code on failure.
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
This is an example snippet of code using the old API:
ret = rpma_conn_completion_wait(conn);
if (ret) { error_handling_code() }
ret = rpma_conn_completion_get(conn);
The above snippet should be replaced with the following one using the new API:
struct rpma_cq *cq = NULL;
ret = rpma_conn_get_cq(cq);
if (ret) { error_handling_code() }
ret = rpma_cq_wait(cq);
if (ret) { error_handling_code() }
ret = rpma_cq_get_completion(cq);
rpma_conn_get_completion_fd(3), rpma_conn_completion_get(3), rpma_conn_req_connect(3), librpma(7) and https://pmem.io/rpma/
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.