rpma_srq_get_rcq(3)
π rpma_srq_get_rcq β bestie edition π
okay so real quick, this page lives in the RPMA Programmer's Manual (section 3, rpma_srq_get_rcq(3), iykyk) and it's literally just about grabbing the receive CQ out of your shared RQ object. tiny page, big vibes, no cap.
β¨ NAME β¨
rpma_srq_get_rcq β get the receive CQ from the shared RQ object π
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct rpma_srq;
struct rpma_cq;
int rpma_srq_get_rcq(const struct rpma_srq *srq, struct rpma_cq **rcq_ptr);
like. that's the whole thing. she's short and she's iconic π
π¦ DESCRIPTION π¦
okay so rpma_srq_get_rcq() gets the receive CQ from the shared RQ object. that's the assignment. that's the mission. π«Ά
and the lore is: the receive CQ was created by rpma_srq_new(3), and it's the thing that allows handling all rpma_srq_recv(3) completions within the shared RQ. so every recv completion in that shared RQ flows through here. periodt.
also bestie, if you want a different size for that receive CQ, rpma_srq_cfg_set_rcq_size(3) can change the receive CQ size. go off, configure your little heart out β¨
π RETURN VALUE π
rpma_srq_get_rcq() returns 0 on success or a negative error code on failure. simple as that, no plot twist.
π important though:rpma_srq_get_rcq()does not set the*rcq_ptrvalue on failure. like, it just leaves it alone. do not go reading it and assuming things, fr fr.
π ERRORS π
rpma_srq_get_rcq() can fail with the following error:
RPMA_E_INVALβsrqorrcq_ptrisNULLπ«
that's the one. the only one. guard your pointers, queen π
π§ SEE ALSO π§
rpma_cq_wait(3)rpma_cq_get_wc(3)rpma_cq_get_fd(3)rpma_srq_cfg_set_rcq_size(3)rpma_srq_new(3)librpma(7)https://pmem.io/rpma/
and that's the whole page, bestie!! this one's from the RPMA crew, dated 01 April 2024, and it's filed under rpma_srq_get_rcq(3). mwah, go get that CQ ππβ¨
π¦ 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