PMEMPOOL_RM(3)
β¨ NAME β¨
pmempool_rm() β bestie, this is the one that removes a persistent memory pool π
like it literally deletes the whole thing, no takebacks
πΈ SYNOPSIS πΈ
#include <libpmempool.h>
int pmempool_rm(const char *path, int flags);
π¦ DESCRIPTION π¦
okay so here's the tea β β pmempool_rm() removes the pool that path is pointing at. and path is flexible like that, it can point to a:
- regular file
- device dax
- pool set file
and if path happens to be a pool set file?? π then pmempool_rm() goes full main character and removes all the part files from replicas using unlink(2) first, and only then removes the pool set file itself. order matters, she's organized like that β¨
the flags argument is what decides how pmempool_rm() behaves, and it's either 0 or the bitwise OR of one or more of these:
PMEMPOOL_RM_FORCEβ ignore literally all errors when removing part files from replicas. no thoughts, head empty, just vibes π«ΆPMEMPOOL_RM_POOLSET_LOCALβ also remove the local pool set file
π RETURN VALUE π
on success, pmempool_rm() returns 0 β we love a clean win π
on error, it returns -1 and sets errno accordingly π so like, check that.
π SEE ALSO π
unlink(3), libpmemobj(7) and <https://pmem.io>
ngl this is a delete function, bestie. it removes stuff. for real for real. read twice, run once π
this lil page came from the PMDK Programmer's Manual, dated 2025-07-24 β mwah, sending it off with a kiss π§π
π¦ where this page comes from
- fedora 43: libpmempool-devel 2.1.0-4.fc43 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2017-2022, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms