RPMA_CONN_CFG_GET_SQ_SIZE(3)

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

πŸ’– 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 0 on 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 β€” cfg or sq_size is NULL. 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