RPMA_SRQ_CFG_GET_RCQ_SIZE(3)

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

πŸ’– NAME πŸ’–

rpma_srq_cfg_get_rcq_size β€” bestie, this one gets the receive CQ size of the shared RQ. That's it, that's the whole job. She's a getter. She gets. πŸŽ€


✨ SYNOPSIS ✨

#include <librpma.h>

struct rpma_srq_cfg;
int rpma_srq_cfg_get_rcq_size(const struct rpma_srq_cfg *cfg, uint32_t *rcq_size);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so rpma_srq_cfg_get_rcq_size() literally just gets the receive CQ size of the shared RQ. That's the vibe. You hand it your config, you hand it a place to put the number, and it puts the number there. No drama, no plot twists, no side quests. πŸ’…


🌸 RETURN VALUE 🌸

So here's the tea: rpma_srq_cfg_get_rcq_size() returns 0 on success, or a negative error code if it's not giving. 😭

And like β€” important β€” on failure it does not set the *rcq_size value. It's not gonna leave you a half-eaten snack and pretend everything's fine. Nothing gets written, periodt. 🫢


πŸ’€ ERRORS πŸ’€

rpma_srq_cfg_get_rcq_size() can fail with the following error, and honestly there's exactly one:

  • RPMA_E_INVAL β€” cfg or rcq_size is NULL. Ma'am. You gave it nothing. It cannot work with nothing. πŸ“

πŸ”₯ SEE ALSO πŸ”₯


okay bestie that's the whole page, you ate it up, no cap πŸ’…βœ¨

this little legend is from the RPMA Programmer's Manual, dated 01 April 2024 β€” go forth and get those CQ sizes, you main character πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from