rpma_conn_cfg_set_srq(3)

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

πŸ’– rpma_conn_cfg_set_srq(3) πŸ’–

okay bestie, welcome to the RPMA Programmer's Manual ✨ this one's a lil baby function but she's important, trust.


🌸 NAME 🌸

rpma_conn_cfg_set_srq β€” bestie, this is the one that sets a shared RQ object for the connection 🫢


✨ SYNOPSIS ✨

#include <librpma.h>

struct rpma_conn_cfg;
struct rpma_srq;
int rpma_conn_cfg_set_srq(struct rpma_conn_cfg *cfg, struct rpma_srq *srq);

like, you gotta include librpma.h first, no cap. πŸ™ˆ


πŸ’… DESCRIPTION πŸ’…

so rpma_conn_cfg_set_srq() sets a shared RQ object for the connection. that's the whole vibe. πŸŽ€

and listen β€” if you never call this function, then the srq just has the default value (NULL) that got set by rpma_conn_cfg_new(3). so it's giving "no srq, no problem" unless you say otherwise. lowkey iconic of the defaults ngl. ✨


πŸ”₯ RETURN VALUE πŸ”₯

rpma_conn_cfg_set_srq() returns 0 on success, or a negative error code on failure. so zero = slay, negative = not slay 😭


πŸ’€ ERRORS πŸ’€

rpma_conn_cfg_set_srq() can fail with the following error:

  • RPMA_E_INVAL β€” cfg is NULL. bestie. you passed in nothing. the function cannot work with nothing. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


RPMA Β· 01 April 2024 Β· rpma_conn_cfg_set_srq(3)

and that's the whole page, bestie πŸ’– this was the RPMA manual, dated 01 April 2024, and you ate. periodt. πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from