logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpma_conn_req_recv - initiate the receive operation

Description

rpma_conn_req_recv()  initiates the receive operation. It prepares a buffer for a message sent from other
       side of the connection. Please see rpma_send(3). This is a variant of  rpma_recv(3)  which  may  be  used
       before the connection is established. op_context is returned in the wr_id field of the completion (struct
       ibv_wc).

Errors

rpma_conn_req_recv() can fail with the following errors:

       •  RPMA_E_INVAL - req or src or op_context is NULL

       •  RPMA_E_PROVIDER - ibv_post_recv(3) failed

Name

rpma_conn_req_recv - initiate the receive operation

Return Value

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

See Also

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

RPMA                                              01 April 2024                            rpma_conn_req_recv(3)

Synopsis

             #include <librpma.h>

             struct rpma_conn_req;
             struct rpma_mr_local;
             int rpma_conn_req_recv(struct rpma_conn_req *req, struct rpma_mr_local *dst, size_t offset,
                             size_t len, const void *op_context);

See Also