rpma_write_with_imm(3) | RPMA Programmer's Manual | rpma_write_with_imm(3) |
rpma_write_with_imm - initiate the write operation with immediate data
#include <librpma.h>
struct rpma_conn;
struct rpma_mr_local;
struct rpma_mr_remote;
int rpma_write_with_imm(struct rpma_conn *conn,
struct rpma_mr_remote *dst, size_t dst_offset,
const struct rpma_mr_local *src, size_t src_offset,
size_t len, int flags, uint32_t imm,
const void *op_context);
rpma_write_with_imm() initiates the write operation with immediate data (transferring data from the local memory to the remote memory. To write a 0 bytes message, set src and dst to NULL and src_offset, dst_offset and len to 0.
The attribute flags set the completion notification indicator:
op_context is returned in the wr_id field of the completion (struct ibv_wc).
The rpma_write_with_imm() function returns 0 on success or a negative error code on failure.
rpma_write_with_imm() can fail with the following errors:
rpma_conn_req_connect(3), rpma_mr_reg(3), rpma_mr_remote_from_descriptor(3), librpma(7) and https://pmem.io/rpma/
10 January 2023 | RPMA |