rpma_cq_wait(3)

rpma_cq_wait3

Wait for a completion and ack it

Usage

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

Overview

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.

Return value

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

Errors

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_E_SHARED_CHANNEL - the completion event channel is shared and cannot be handled by any particular CQ

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From librpma-dev 1.3.0-2+b3 in Debian 13 (Trixie). Parsed by carta from the page's man source.