RPMA_CONN_CFG_GET_CQ_SIZE(3)
π rpma_conn_cfg_get_cq_size β get CQ size for the connection π
okay bestie, sit down, hydrate, and let me tell you about the librpma function that goes and fetches the CQ size your connection config is holding onto. it's giving little messenger, not main character, but we love her anyway π«Ά
this one lives in the RPMA Programmer's Manual, so you already know it's fancy. iykyk π
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_conn_cfg;
int rpma_conn_cfg_get_cq_size(const struct rpma_conn_cfg *cfg, uint32_t *cq_size);
literally just those two lines, no more no less, copy them exactly or the compiler will simply not hear you π
πΈ DESCRIPTION πΈ
so rpma_conn_cfg_get_cq_size() gets the CQ size for the connection. that's it. that's the whole job. she's a getter, she gets, she serves π
you hand her a cfg, she hands you back the CQ size. no cap.
β RETURN VALUE β
rpma_conn_cfg_get_cq_size() returns 0 on success β slay β or a negative error code on failure π
and listen, this part matters: on failure, rpma_conn_cfg_get_cq_size() does not set the *cq_size value. like, she leaves it alone. doesn't touch it. periodt. so don't go reading it expecting a fresh number, bestie, that's not the vibe π«
π ERRORS π
rpma_conn_cfg_get_cq_size() can fail with the following error:
RPMA_E_INVALβcfgorcq_sizeisNULL. yeahhh, if you passed her nothing (or a pointer to nothing), she's gonna be like "ma'am, i can't work with this" π«
π¦ SEE ALSO π¦
and that's the whole page, bestie π if you got this far you're officially obsessed with RDMA and honestly, valid. go forth and get that CQ size π
RPMA β 01 April 2024 β rpma_conn_...get_cq_size(3) π mwah, xoxo, stay documented β¨
π¦ 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