rpma_peer_...te_to_pmem(3)
β¨ rpma_peer_cfg_set_direct_write_to_pmem β declare direct write to PMEM support β¨
okay bestie, welcome to the RPMA Programmer's Manual π this one's short but it's important, i promise. it's the lil function that goes "yeah babe, i can write straight to PMEM, trust me" π«Ά
πΈ NAME πΈ
rpma_peer_cfg_set_direct_write_to_pmem β declare direct write to PMEM support β¨
like. that's literally the whole job. it declares a thing. it doesn't do the thing. it just ~declares~ the thing π
π¦ SYNOPSIS π¦
#include <librpma.h>
struct rpma_peer_cfg;
int rpma_peer_cfg_set_direct_write_to_pmem(struct rpma_peer_cfg *pcfg, bool supported);
ok so first you gotta #include <librpma.h> β no include, no vibes, that's the rule π₯ and yes there's an opaque struct rpma_peer_cfg; hanging out up there because that's just how this library rolls, you don't get to peek inside her π
π DESCRIPTION π
rpma_peer_cfg_set_direct_write_to_pmem() declares the support of the direct write to PMEM.
that's it. that's the sentence. she's a one-line queen and honestly? iconic. you pass in your pcfg and you tell her whether direct write to PMEM is supported or not, and she goes and records that fact. no drama, no side quests π
π RETURN VALUE π
- returns
0when everything's good β slay, we love a success β¨ - returns a negative error code when it's not β so like, check that return value bestie, fr fr π
π ERRORS π
rpma_peer_cfg_set_direct_write_to_pmem() can fail with this one single error, and she's very specific about it:
RPMA_E_INVALβpcfgisNULLπ like girl you handed her nothing, what did you expect
no cap: if you pass NULL, that's the error you're getting. don't be shocked. be prepared π
π SEE ALSO π
go read these next, they're the friend group π«Ά
rpma_conn_apply_remote_peer_cfg(3)rpma_peer_cfg_get_descriptor(3)rpma_peer_cfg_get_direct_write_to_pmem(3)rpma_peer_cfg_new(3)librpma(7)https://pmem.io/rpma/
and that's the whole page, bestie β RPMA Programmer's Manual, rpma_peer_...te_to_pmem(3), dropped 01 April 2024 by the RPMA girlies π go set that flag, mwah πβ¨
π¦ 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