RPMA_SRQ_CFG_SET_RCQ_SIZE(3)
β¨ rpma_srq_cfg_set_rcq_size β¨
okay bestie, welcome to the RPMA Programmer's Manual π this one's from section 3 (the library calls girlies), and it's literally just about telling your shared RQ how big its receive CQ should be. no cap. π
πΈ NAME πΈ
rpma_srq_cfg_set_rcq_size β set receive CQ size of the shared RQ
like... that's the whole vibe. you're setting the rcq size. iconic. π
π¦ SYNOPSIS π¦
#include <librpma.h>
struct rpma_srq_cfg;
int rpma_srq_cfg_set_rcq_size(struct rpma_srq_cfg *cfg, uint32_t rcq_size);
so you include <librpma.h>, there's an opaque struct rpma_srq_cfg doing its mysterious main character thing π«Ά, and then the function itself takes a cfg pointer and a uint32_t rcq_size. that's it. that's the whole signature. slay.
π DESCRIPTION π
rpma_srq_cfg_set_rcq_size() sets the receive CQ size of the shared RQ. periodt. β¨
here's the tea though β if you never call this function, the rcq_size just chills at its default value of 100, which was set by rpma_srq_cfg_new(3). so like, no pressure, but also now you know. πΈ
β οΈ important little plot twist:rpma_srq_new(3)does not create its own receive CQ if the size of the receive CQ equals0. so if you set it to zero, bestie, there is no receive CQ. that's a real thing that happens. π
π RETURN VALUE π
- returns
0on success π - returns a negative error code on failure π
that's it. simple. clean. very demure.
π₯ ERRORS π₯
rpma_srq_cfg_set_rcq_size() can fail with the following error:
RPMA_E_INVALβcfgisNULLπ (yeah, you gotta actually pass a config, bestie)
π§ SEE ALSO π§
go read those too, iykyk π
and that's the page!! this was RPMA, dated 01 April 2024 π stay hydrated, pass a non-NULL cfg, and remember the default is 100 unless you say otherwise. mwah. π«Άβ¨
π¦ 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