rpma_flush(3) RPMA Programmer's Manual rpma_flush(3)

rpma_flush - initiate the flush operation

      #include <librpma.h>
      struct rpma_conn;
      struct rpma_mr_remote;
      enum rpma_flush_type {
              RPMA_FLUSH_TYPE_PERSISTENT,
              RPMA_FLUSH_TYPE_VISIBILITY,
      };
      int rpma_flush(struct rpma_conn *conn,
                      struct rpma_mr_remote *dst, size_t dst_offset,
                      size_t len, enum rpma_flush_type type, int flags,
                      const void *op_context);

rpma_flush() initiates the flush operation (finalizing a transfer of data to the remote memory). Possible types of rpma_flush() operation:

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_flush() function returns 0 on success or a negative error code on failure.

rpma_flush() can fail with the following errors:

rpma_conn_req_connect(3), rpma_mr_remote_from_descriptor(3), librpma(7) and https://pmem.io/rpma/

01 April 2024 RPMA