rpma_peer_...descriptor(3)
π rpma_peer_cfg_get_descriptor β get the descriptor of the peer configuration π
okay bestie, real talk: this one is a lil function from the RPMA Programmer's Manual (that's the rpma_peer_...descriptor(3) page, mwah) and it is short but it is iconic. it does exactly one thing and it does it flawlessly. no notes. π
β¨ NAME β¨
rpma_peer_cfg_get_descriptor β get the descriptor of the peer configuration π«Ά
like. it gets the descriptor. of the peer config. the way that the name literally IS the plot?? obsessed. π
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct rpma_peer_cfg;
int rpma_peer_cfg_get_descriptor(const struct rpma_peer_cfg *pcfg, void *desc);
so you pull in <librpma.h>, you've got your opaque lil struct rpma_peer_cfg vibe going on, and then the function itself takes a pcfg and a desc and hands you back an int. that's the whole energy. β¨
π¦ DESCRIPTION π¦
rpma_peer_cfg_get_descriptor() gets the descriptor of the peer configuration. that's it, that's the function, it's giving minimalism, it's giving main character, it's giving yes.
π¨ SECURITY WARNING π¨
bestie. babes. listen. π go read rpma_peer_cfg_from_descriptor(3). seriously. this is not a drill, this is a SECURITY WARNING and we do NOT skip those. π
π RETURN VALUE π
rpma_peer_cfg_get_descriptor() returns 0 on success, or a negative error code on failure. so if it's zero you're slaying, and if it's negative, something said no. π
π₯ ERRORS π₯
rpma_peer_cfg_get_descriptor() can fail with the following error:
RPMA_E_INVALβpcfgordescareNULLπ (like bestie, you gotta actually pass something)
π SEE ALSO π
and that's the whole page, no cap. this beauty is brought to you by the RPMA girlies, dated 01 April 2024 β go forth and get those descriptors, bestie. periodt. πβ¨π¦πΈππ π«Άπ
π¦ 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