rpma_srq_cfg_new(3)

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

πŸ’– rpma_srq_cfg_new β€” create a new shared RQ configuration object πŸ’–

okay bestie, welcome to the RPMA Programmer's Manual ✨ this one's about rpma_srq_cfg_new(3), and it's genuinely such a vibe. let's get into it 🫢


🌸 NAME 🌸

rpma_srq_cfg_new β€” make a brand new shared RQ configuration object. yes, it's giving "fresh start" energy πŸ’…


✨ SYNOPSIS ✨

#include <librpma.h>

struct rpma_srq_cfg;
int rpma_srq_cfg_new(struct rpma_srq_cfg **cfg_ptr);

look at her. so clean. so iconic πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so rpma_srq_cfg_new() does exactly what it says on the tin: it creates a new shared RQ configuration object and fills it in with the default values, which are:

.rcq_size = 100
.rq_size = 100

defaults so cozy, so demure πŸŽ€

ngl, important lore incoming: rpma_srq_new(3) called with the default rcq_size creates its own receive CQ. periodt.

πŸ’œ RETURN VALUE πŸ’œ

rpma_srq_cfg_new() returns 0 on success, or a negative error code if it fails 😭 and listen β€” if it fails, rpma_srq_cfg_new() does not set the *cfg_ptr value. like, it's not gonna hand you a half-baked pointer. no cap.


πŸ’€ ERRORS πŸ’€

rpma_srq_cfg_new() can fail with these, so know them iykyk:

  • RPMA_E_INVAL β€” cfg_ptr is NULL πŸ™ˆ
  • RPMA_E_NOMEM β€” out of memory 😭

🌈 SEE ALSO 🌈

go read these next, bestie, they're all linked up:


and that's the whole page, fr fr 🧚 this was the RPMA manual, dated 01 April 2024, and yeah β€” rpma_srq_cfg_new(3) really ate that. slay πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from