rpma_conn_cfg_get_srq(3)

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

rpma_conn_cfg_get_srq πŸ’… (section 3 of the RPMA Programmer's Manual, bestie)

okay so. you're deep in the RPMA docs, you've got a connection config object, and you're like "bestie where is my shared RQ at??" β€” and this is the little guy that answers. it's giving "fetch me my srq" energy and honestly? iconic. πŸŽ€


✨ NAME ✨

rpma_conn_cfg_get_srq β€” get the shared RQ object from the connection

✨ SYNOPSIS ✨

#include <librpma.h>

struct rpma_conn_cfg;
struct rpma_srq;
int rpma_conn_cfg_get_srq(const struct rpma_conn_cfg *cfg, struct rpma_srq **srq_ptr);

✨ DESCRIPTION ✨

rpma_conn_cfg_get_srq() gets the shared RQ object from the connection. that's it, that's the whole vibe. you hand it a connection config, it hands you back the shared RQ. πŸ’–

✨ RETURN VALUE ✨

rpma_conn_cfg_get_srq() returns 0 on success or a negative error code on failure. and listen, this part matters: on failure it does not set the *srq_ptr value. not even a little. so don't go reading it like it means something, okay? 🫢

✨ ERRORS ✨

rpma_conn_cfg_get_srq() can fail with the following error:

  • RPMA_E_INVAL β€” cfg or srq_ptr is NULL
fr fr, if either of those is NULL you're getting RPMA_E_INVAL and nothing else. no cap.

✨ SEE ALSO ✨


and that's the whole page, you ate that πŸ“ go set an srq and then come back and get it like the main character you are. mwah πŸ’œ

RPMA · 01 April 2024 · bye bestie, drink some water 🧚✨

πŸ“¦ where this page comes from