rpma_conn_req_new(3)
π rpma_conn_req_new π
okay bestie, welcome to the RPMA Programmer's Manual β¨ this one's about rpma_conn_req_new(3) and honestly? it's giving main character energy because it's literally the thing that starts the whole connection era. let's get into it π«Ά
β¨ NAME β¨
rpma_conn_req_new β create a new outgoing connection request object π
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct rpma_peer;
struct rpma_conn_cfg;
struct rpma_conn_req;
int rpma_conn_req_new(struct rpma_peer *peer, const char *addr, const char *port,
const struct rpma_conn_cfg *cfg, struct rpma_conn_req **req_ptr);
π¦ DESCRIPTION π¦
so rpma_conn_req_new() does the thing: it creates a brand new outgoing connection request object π
and it does that using reliable, connection-oriented and message-based (RDMA_PS_TCP) QP communication. no cap, that's the whole vibe.
β RETURN VALUE β
rpma_conn_req_new() returns 0 on success or a negative error code on failure π and listen β on failure it does not set the *req_ptr value. like, it just leaves it alone. rude but honest.
if cfg is NULL, then the default values are used π
- see
rpma_conn_cfg_new(3)for more details π
π ERRORS π
rpma_conn_req_new() can fail with the following errors:
RPMA_E_INVALβpeer,addr,portorreq_ptrisNULLπRPMA_E_NOMEMβ out of memory π΅RPMA_E_PROVIDERβrdma_create_id(3),rdma_resolve_addr(3),rdma_resolve_route(3)oribv_create_cq(3)failed π
π SEE ALSO π
rpma_conn_cfg_new(3), rpma_conn_req_connect(3), rpma_conn_req_delete(3), rpma_conn_req_recv(3), rpma_ep_next_conn_req(3), rpma_peer_new(3), librpma(7) and https://pmem.io/rpma/ π§
and that's the whole page bestie, we ate and left no crumbs π this was RPMA, dated 01 April 2024, and it's rpma_conn_req_new(3) β go create some connection requests, you've got this πβ¨
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms