carta
rpma_send_with_imm(3)

rpma_send_with_imm3

Initiate the send operation with immediate data

Usage

struct rpma_conn;

struct rpma_mr_local;

int rpma_send_with_imm(struct rpma_conn *conn, const struct rpma_mr_local *src,

const void *op_context);

Overview

rpma_send_with_imm() initiates the send operation with immediate data which transfers a message from the local memory to other side of the connection. To send a 0 byte message, set src to NULL and both offset and len to 0.

The attribute flags set the completion notification indicator:

•

RPMA_F_COMPLETION_ON_ERROR - generate the completion on error

•

RPMA_F_COMPLETION_ALWAYS - generate the completion regardless of result of the operation.

op_context is returned in the wr_id field of the completion (struct ibv_wc).

Return value

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

Errors

rpma_send_with_imm() can fail with the following errors:

•

RPMA_E_INVAL - conn == NULL || flags == 0

•

RPMA_E_INVAL - src == NULL && (offset != 0 || len != 0)

•

RPMA_E_PROVIDER - ibv_post_send(3) failed

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

From librpma-dev 1.3.0-2+b3 in Debian 13 (Trixie). Parsed by carta from the page's man source.