rpma_conn_get_qp_num(3)

πŸ“¦
version 1.3.0 Β· 3 versions
, in ubuntu noble

πŸ’– 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 β€” conn or qp_num is NULL πŸ™ˆ (yeah, one of your pointers ghosted you)

πŸ‘‘ SEE ALSO πŸ‘‘


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