rpma_peer_...te_to_pmem(3)

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

✨ rpma_peer_cfg_get_direct_write_to_pmem β€” check direct write to PMEM support ✨

okay bestie, sit down, hydrate, and let's talk about the RPMA Programmer's Manual πŸ’– this one lives in section 3, and it's genuinely so cute and simple you're gonna scream.


🌸 NAME 🌸

rpma_peer_cfg_get_direct_write_to_pmem β€” check direct write to PMEM support

like. that's it. that's the whole job. she checks, she reports, she slays πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <librpma.h>

struct rpma_peer_cfg;
int rpma_peer_cfg_get_direct_write_to_pmem(
                const struct rpma_peer_cfg *pcfg, bool *supported);

so you've got your opaque lil struct rpma_peer_cfg (mysterious, main character energy, we don't see her internals πŸ‘‘) and then the function itself takes a const struct rpma_peer_cfg *pcfg and a bool *supported and hands you back an int. periodt.


πŸŽ€ DESCRIPTION πŸŽ€

rpma_peer_cfg_get_direct_write_to_pmem() checks the support of the direct write to PMEM.

that's the vibe check fr fr β€” you give her a peer config, she tells you whether direct write to PMEM is a thing that's supported. no drama, no side quests, just the answer ✨


πŸ’œ RETURN VALUE πŸ’œ

  • 0 on success β€” ate, no notes 🫢
  • a negative error code on failure β€” not the moment, but we move 😭

so basically: 0 means we're so back, negative means we are unwell.


🌈 ERRORS 🌈

rpma_peer_cfg_get_direct_write_to_pmem() can fail with the following error:

  • RPMA_E_INVAL β€” pcfg or supported are NULL
lowkey if you passed a NULL in there, that's on you bestie πŸ’€ she's not gonna guess what you meant. pcfg and supported both gotta be real, actual, existing pointers. no cap.

πŸ‘‘ SEE ALSO πŸ‘‘

go read them, they're all part of the same friend group, iykyk 🧚


aaaand that's the whole page, bestie!! this lil icon is from the RPMA manual, dated 01 April 2024, and her page name is rpma_peer_...te_to_pmem(3) β€” yes the title is abbreviated like that, she's mysterious like that πŸ’…βœ¨ mwah, go write some PMEM code, you got this πŸ“πŸ’–

πŸ“¦ where this page comes from