RPMA_SRQ_CFG_SET_RQ_SIZE(3)

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

✨ rpma_srq_cfg_set_rq_size(3) ✨

okay bestie, welcome to the RPMA Programmer's Manual πŸ’– we're talking about rpma_srq_cfg_set_rq_size today and honestly? it's giving "small function, big responsibility". let's get into it 🫢


🌸 NAME 🌸

rpma_srq_cfg_set_rq_size β€” set the RQ size of the shared RQ πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <librpma.h>

struct rpma_srq_cfg;
int rpma_srq_cfg_set_rq_size(struct rpma_srq_cfg *cfg, uint32_t rq_size);

like. look at her. iconic signature, no notes πŸ’œ


πŸŽ€ DESCRIPTION πŸŽ€

so rpma_srq_cfg_set_rq_size() sets the RQ size of the shared RQ. that's the whole job, and she does it flawlessly, periodt ✨

and here's the tea πŸ“: if you don't call this function, then the rq_size just has the default value of 100, which was set by rpma_srq_cfg_new(3). so like, no pressure, she already came prepared πŸ’…


πŸ”₯ RETURN VALUE πŸ”₯

  • rpma_srq_cfg_set_rq_size() returns 0 on success 🌈
  • or a negative error code on failure 😭

πŸ’€ ERRORS πŸ’€

ngl, rpma_srq_cfg_set_rq_size() can fail with this one:

  • RPMA_E_INVAL β€” cfg is NULL πŸ™ˆ (bestie. you forgot to pass the config. it's giving empty-handed energy)

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, you ate that 🧚⭐ this was RPMA, dated 01 April 2024, and you just read rpma_srq_cfg_set_rq_size(3). go forth and set that RQ size, main character πŸ’–πŸŽ€

πŸ“¦ where this page comes from