RPMA_CONN_CFG_SET_CQ_SIZE(3)

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

πŸ’– rpma_conn_cfg_set_cq_size(3) πŸ’–

okay so bestie, welcome to the RPMA Programmer's Manual β€” this one is a lil function called rpma_conn_cfg_set_cq_size, and no cap, it's a whole vibe. it sets the CQ size for your connection. that's it. that's the girl. ✨


🌸 NAME 🌸

rpma_conn_cfg_set_cq_size β€” set CQ size for the connection


πŸŽ€ SYNOPSIS πŸŽ€

#include <librpma.h>

struct rpma_conn_cfg;
int rpma_conn_cfg_set_cq_size(struct rpma_conn_cfg *cfg, uint32_t cq_size);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, rpma_conn_cfg_set_cq_size() sets the CQ size for the connection. that's the whole job, she's booked and busy. πŸ’…

and here's the tea bestie β€” if you don't call this function, then cq_size just chills at its default value, which is 10. that default was set by rpma_conn_cfg_new(3), so it's not just out here making up numbers, it's giving established canon. 🫢


✨ RETURN VALUE ✨

rpma_conn_cfg_set_cq_size() returns 0 on success, or a negative error code on failure. so if you see a negative number, that's not a slay, that's a problem. 😭


πŸ’€ ERRORS πŸ’€

rpma_conn_cfg_set_cq_size() can fail with the following error:

  • RPMA_E_INVAL β€” cfg is NULL. yeah she does not fw a null pointer, not even a little bit. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, periodt. πŸ’– this was the RPMA manual, dated 01 April 2024, and it's giving main character energy from start to finish. go forth and set your CQ size, bestie, ily. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from