RPMA_CONN_CFG_SET_COMPL_CHANNEL(3)

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

πŸ’– rpma_conn_cfg_set_compl_channel(3) β€” RPMA Programmer's Manual πŸ’–

okay bestie, gather round, because today we're talking about the little function that decides whether your CQ and your RCQ are gonna share a completion event channel or keep their own separate lil spaces πŸŽ€ it's giving "we can share, or we can each have our own room" and honestly? iconic either way.


✨ NAME ✨

rpma_conn_cfg_set_compl_channel β€” set if the completion event channel can be shared by CQ and RCQ


🌸 SYNOPSIS 🌸

#include <librpma.h>

struct rpma_conn_cfg;
int rpma_conn_cfg_set_compl_channel(struct rpma_conn_cfg *cfg, bool shared);

πŸ¦‹ DESCRIPTION πŸ¦‹

so, rpma_conn_cfg_set_compl_channel() does exactly what it says on the tin, no cap β€” it sets whether the completion event channel can be shared by CQ and RCQ, or not. that's it. that's the whole job. πŸ’…

and here's the tea: by default, the completion event channel is not shared by CQ and RCQ. like, out of the box they're doing their own separate thing. πŸ™ˆ

if you wanna know the full lore, go read rpma_conn_cfg_new(3) for details β€” it's got the whole backstory. 🫢


⭐ RETURN VALUE ⭐

rpma_conn_cfg_set_compl_channel() returns 0 on success, or a negative error code if things go sideways. 😭


πŸ’€ ERRORS πŸ’€

rpma_conn_cfg_set_compl_channel() can fail with the following error:

  • RPMA_E_INVAL β€” cfg is NULL. yeah. you gotta actually pass it a config, bestie, not vibes. πŸ“

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, babe ✨ this was RPMA, dated 01 April 2024 β€” mwah, go forth and configure your channels responsibly πŸ’œπŸ§š

πŸ“¦ where this page comes from