RPMA_CONN_CFG_GET_SQ_SIZE(3)
π rpma_conn_cfg_get_sq_size β RPMA Programmer's Manual π
okay bestie, listen up, because this one is short but it's giving essential. we're in the RPMA Programmer's Manual, and this lil function is your go-to for peeking at the SQ size on a connection config. no cap. π¦
β¨ NAME β¨
rpma_conn_cfg_get_sq_size β get SQ size for the connection π
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct rpma_conn_cfg;
int rpma_conn_cfg_get_sq_size(const struct rpma_conn_cfg *cfg, uint32_t *sq_size);
π DESCRIPTION π
so like, rpma_conn_cfg_get_sq_size() literally just gets the SQ size for the connection. that's it. that's the whole vibe. you hand it a config, it hands you back the SQ size. iconic behavior, honestly. β¨
π RETURN VALUE π
here's the tea, bestie:
- returns
0on success π«Ά - returns a negative error code on failure π
and the important bit, don't skip this: rpma_conn_cfg_get_sq_size() does not set the *sq_size value on failure. so like, if it flops, that value stays untouched. don't be out here reading it like it means something. π
π₯ ERRORS π₯
rpma_conn_cfg_get_sq_size() can fail with the following error:
RPMA_E_INVALβcfgorsq_sizeisNULL. yeah, if either one is a whole nothing-burger, that's the error you get. periodt. π
π SEE ALSO π
and that's the whole page, bestie!! π this one's from the RPMA manual and it's dated 01 April 2024 β so if you ever need to cite it, you know exactly where it came from. slay, go read the other ones, 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