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

rpma_cq_wait - wait for a completion and ack it

      #include <librpma.h>
      struct rpma_cq;
      int rpma_cq_wait(struct rpma_cq *cq);

rpma_cq_wait() waits for an incoming completion event and acks it. If rpma_cq_wait() 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_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/

29 October 2024 RPMA