rpma_peer_...descriptor(3)

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

πŸ’– 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 β€” pcfg or desc are NULL πŸ™ˆ (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