rpma_cq_wait - wait for a completion
#include <librpma.h>
struct rpma_cq;
int rpma_cq_wait(struct rpma_cq *cq);
rpma_cq_wait() waits for an incoming completion. If it succeeds, then all available completions should be collected using rpma_cq_get_wc(3) before the next rpma_cq_wait() call.
The rpma_cq_wait() function returns 0 on success or a negative error code on failure.
rpma_cq_wait() can fail with the following errors:
RPMA_E_INVAL - cq is NULL
RPMA_E_PROVIDER - ibv_req_notify_cq(3) failed with a provider error
RPMA_E_NO_COMPLETION - no completions available
rpma_conn_get_cq(3), rpma_conn_get_rcq(3), rpma_cq_get_wc(3), rpma_cq_get_fd(3), librpma(7) and https://pmem.io/rpma/
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.