DOKK / manpages / debian 12 / librpma-dev / rpma_conn_wait.3.en
rpma_conn_wait(3) RPMA Programmer's Manual rpma_conn_wait(3)

rpma_conn_wait - wait for a completion event on the shared completion channel from CQ or RCQ


#include <librpma.h>
struct rpma_conn;
struct rpma_cq
int rpma_conn_wait(struct rpma_conn *conn, int flags, struct rpma_cq **cq, bool *is_rcq)

rpma_conn_wait() waits for a completion event on the shared completion channel from CQ or RCQ, acks it and returns a CQ that caused the event in the cq argument and a boolean value saying if it is RCQ or not in the is_rcq argument (if is_rcq is not NULL). If rpma_conn_wait() succeeds, then all available completions should be collected from the returned cq using rpma_cq_get_wc(3).

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

rpma_conn_wait() can fail with the following errors:

rpma_conn_req_new(3), librpma(7) and https://pmem.io/rpma/

10 January 2023 RPMA