RPMA_PEER_CFG_GET_DESCRIPTOR_SIZE(3)
π rpma_peer_cfg_get_descriptor_size β get size of the peer cfg descriptor π
okay bestie, welcome to the RPMA Programmer's Manual, section 3, and today's main character is rpma_peer_cfg_get_descriptor_size π«Ά she's a tiny little function but she knows exactly what she's about, and that is: telling you how big your peer configuration descriptor is. no drama, no plot twists. just size. β¨
πΈ NAME πΈ
rpma_peer_cfg_get_descriptor_size β get size of the peer cfg descriptor π
π SYNOPSIS π
#include <librpma.h>
struct rpma_peer_cfg;
int rpma_peer_cfg_get_descriptor_size(const struct rpma_peer_cfg *pcfg, size_t *desc_size);
like. look at her. one include, one forward declaration of struct rpma_peer_cfg, one function signature. clean, minimal, iconic π
π¦ DESCRIPTION π¦
so what does rpma_peer_cfg_get_descriptor_size() actually do? bestie it literally does one thing and it does it well:
- it gets the size of the peer configuration descriptor π
that's it. that's the whole vibe. it's the "how many bytes am I working with here" girlie. no cap. π
β RETURN VALUE β
rpma_peer_cfg_get_descriptor_size() returns 0 on success, or a negative error code on failure π
so like, zero = we ate. negative = something went sideways.
π ERRORS π
rpma_peer_cfg_get_descriptor_size() can fail with the following error:
RPMA_E_INVALβpcfgordesc_sizeisNULLπ
fr fr, check your pointers before you call her. passing aNULLpcfgor aNULLdesc_sizeis giving chaos energy and she will not be having it.
π₯ SEE ALSO π₯
and that's the whole page bestie, we're done here π this one's from the RPMA crew, dated 01 April 2024 β go forth, get your descriptor size, and slay β¨ππ
π¦ 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