rdma_get_recv_comp

Retrieves a completed work request for the receive operation.

Syntax

#include <rdma/rdma_cma.h>
int rdma_get_recv_comp (struct rdma_cm_id *id, struct ibv_wc *wc);   

Description

The rdma_get_recv_comp operation specifies the information about the completed request. The operation returns the information by using the wc parameter, and uses the wr_id identifier to set the context of the request.

Notes: The rdma_get_recv_comp operation polls the receive completion queue that is associated with an rdma_cm_id identifier. If the queue is not complete, the call is blocked until the request is completed. This call must be used on the rdma_cm_id identifiers that do not share change queues (CQs) with other rdma_cm_id identifiers, and must maintain separate CQs to send and receive completed work request.

Parameters

Item Description
id Specifies a reference to a communication identifier to check the completion of the request.
wc Specifies a reference to a work completion structure that must be filled.

Return Values

Returns 0 on success, or -1 on error. If an error occurs, then errno is set to indicate the reason for failure.