rpma_conn_get_qp_num(3)
π rpma_conn_get_qp_num π
okay bestie, welcome to the RPMA Programmer's Manual β¨ we're doing a lil deep dive on rpma_conn_get_qp_num and honestly? it's giving "small function, big main character energy" π«Ά
πΈ NAME πΈ
rpma_conn_get_qp_num β get the connection's qp_num π
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_conn;
int rpma_conn_get_qp_num(const struct rpma_conn *conn, uint32_t *qp_num);
π¦ DESCRIPTION π¦
so like. rpma_conn_get_qp_num() obtains the unique identifier of the connection. that's it, that's the whole job, and it ate π
it just hands you the one-of-a-kind lil number that says "this connection? yeah, THIS one." periodt π
π RETURN VALUE π
the rpma_conn_get_qp_num() function returns 0 on success, or a negative error code on failure π
and hear me out, this part matters: rpma_conn_get_qp_num() does not set *qp_num value on failure. so like, don't go reading that thing like it's gospel when things went sideways, bestie π«
π ERRORS π
rpma_conn_get_qp_num() can fail with the following error:
RPMA_E_INVALβconnorqp_numisNULLπ (yeah, one of your pointers ghosted you)
π SEE ALSO π
rpma_conn_req_new(3)rpma_ep_next_conn_req(3)rpma_conn_req_connect(3)librpma(7)- and https://pmem.io/rpma/ π
and that's the whole vibe check, bestie!! this lil page came to you from RPMA, dated 01 April 2024 β go forth and grab those qp_nums, iykyk ππ§β
π¦ 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