PMEM_LOG_GET_THRESHOLD(3)
π PMEM_LOG_GET_THRESHOLD π
okay bestie, welcome to the pmem_log_get_threshold(3) page β it lives in the PMDK Programmer's Manual and it is genuinely so simple, you're gonna eat this up. β¨
πΈ NAME πΈ
pmem_log_get_threshold β get the logging threshold value π
β¨ SYNOPSIS β¨
#include <libpmem.h>
int pmem_log_get_threshold(enum pmem_log_threshold threshold,
enum pmem_log_level *value);
π¦ DESCRIPTION π¦
so basically, pmem_log_get_threshold() goes and gets the current value of the threshold. that's it. that's the whole job. π
and like, if you wanna know which thresholds and which values are even on the menu, go read pmem_log_set_threshold(3) β she has all the deets. iykyk. π
π RETURN VALUE π
- on success,
pmem_log_get_threshold()returns0and writes the current value of the threshold intovalue. slay. π - on failure, it returns a non-zero value and sets
errno. - and lowkey important: in case of failure, the contents of
valueare undefined. not me leaving you on read like that π so don't trust whatever's sitting in there, bestie.
π ERRORS π
pmem_log_get_threshold() can fail with the following errors:
EINVALβthresholdis notPMEM_LOG_THRESHOLDnorPMEM_LOG_THRESHOLD_AUXπEINVALβvalueisNULLπ
π«Ά SEE ALSO π«Ά
and that's the whole vibe, bestie πΈ this was the PMDK page, dated 2025-07-24 β go forth and get those thresholds, main character energy only ππ
π¦ where this page comes from
- fedora 43: libpmem-devel 2.1.0-4.fc43 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2024, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms