rpma_conn_get_cq(3) | RPMA Programmer's Manual | rpma_conn_get_cq(3) |
rpma_conn_get_cq - get the connection's main CQ
#include <librpma.h>
struct rpma_conn;
struct rpma_cq;
int rpma_conn_get_cq(const struct rpma_conn *conn, struct rpma_cq **cq_ptr);
rpma_conn_get_cq() gets the main CQ from the connection. When the receive CQ is not present the main CQ allows handling all completions within the connection. When the receive CQ is present the main CQ allows handling all completions except rpma_recv(3) completions within the connection. Please see rpma_conn_get_rcq(3) for details about the receive CQ.
The rpma_conn_get_cq() function returns 0 on success or a negative error code on failure. rpma_conn_get_cq() does not set *cq_ptr value on failure.
rpma_conn_get_cq() can fail with the following error:
rpma_conn_req_connect(3), rpma_conn_get_rcq(3), rpma_cq_wait(3), rpma_cq_get_wc(3), rpma_cq_get_fd(3), rpma_recv(3), librpma(7) and https://pmem.io/rpma/
10 January 2023 | RPMA |