PMEM_LOG_GET_THRESHOLD(3)

πŸ“¦
version 2.1.0 Β· 2 versions
, in fedora 43

πŸ’– 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() returns 0 and writes the current value of the threshold into value. slay. πŸ’–
  • on failure, it returns a non-zero value and sets errno.
  • and lowkey important: in case of failure, the contents of value are 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 β€” threshold is not PMEM_LOG_THRESHOLD nor PMEM_LOG_THRESHOLD_AUX πŸ™ˆ
  • EINVAL β€” value is NULL πŸ’…

🫢 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