rdma_get_send_comp
Retrieves a completed request for send, read, or write operation.
Syntax
Description
Retrieves a completed work request
for a send, RDMA read, or RDMA write operation. Information about
the completed request is returned by using the wc parameter,
which has the wr_id
identifier set to the context
of the request.
Notes: The rdma_get_send_comp
operation
polls the send completion queue that is associated with an rdma_cm_id
identifier.
If a completion request is not found, the rdma_get_send_comp
call
blocks the queue until a request is completed. The rdma_get_send_comp
call
must be used on rdma_cm_id
identifiers that do not
share change queues (CQs) with other rdma_cm_id
identifiers,
and the function maintains separate CQs for send and receive completion
requests.
Parameters
Item | Description |
---|---|
id | Specifies a reference to a communication identifier to check for completions. |
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.