rpma_peer_new(3) | RPMA Programmer's Manual | rpma_peer_new(3) |
rpma_peer_new - create a peer object
#include <librpma.h>
struct ibv_context;
struct rpma_peer;
int rpma_peer_new(struct ibv_context *ibv_ctx, struct rpma_peer **peer_ptr);
rpma_peer_new() creates a new peer object.
The rpma_peer_new() function returns 0 on success or a negative error code on failure. rpma_peer_new() does not set *peer_ptr value on failure.
rpma_peer_new() can fail with the following errors:
rpma_conn_req_new(3), rpma_ep_listen(3), rpma_mr_reg(3), rpma_peer_delete(3), rpma_utils_get_ibv_context(3), librpma(7) and https://pmem.io/rpma/
10 January 2023 | RPMA |