rpma_peer_...te_to_pmem(3)
β¨ 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 π
0on 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βpcfgorsupportedare NULL
lowkey if you passed a NULL in there, that's on you bestie π she's not gonna guess what you meant.pcfgandsupportedboth gotta be real, actual, existing pointers. no cap.
π SEE ALSO π
rpma_peer_cfg_from_descriptor(3)rpma_peer_cfg_new(3)rpma_peer_cfg_set_direct_write_to_pmem(3)librpma(7)- https://pmem.io/rpma/
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
- 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