rpma_log_get_threshold(3)
π rpma_log_get_threshold(3) π
okay bestie, welcome to the RPMA Programmer's Manual β¨ this one's a lil baby page but it's lowkey iconic, so let's go π«Ά
πΈ NAME πΈ
rpma_log_get_threshold β get the logging threshold level π
β¨ SYNOPSIS β¨
#include <librpma.h>
int rpma_log_get_threshold(enum rpma_log_threshold threshold, enum rpma_log_level *level);
like yes, that's the whole thing, she's short and she knows it π
π¦ DESCRIPTION π¦
so rpma_log_get_threshold() does exactly what it says on the tin: it gets the current level of the threshold π
and if you're sitting there like "wait, what thresholds?? what levels??" β no worries, bestie, go peek at rpma_log_set_threshold(3) and it'll tell you all the available thresholds and levels π it's giving "read the other page, i'm not repeating myself" but politely π
β RETURN VALUE β
rpma_log_get_threshold() returns 0 on success π₯³ or a negative error code on failure π that's it, that's the vibe check.
π ERRORS π
rpma_log_get_threshold() can fail with the following errors, and honestly? they're both the same error, which is so real of it:
RPMA_E_INVALβthresholdis notRPMA_LOG_THRESHOLDnorRPMA_LOG_THRESHOLD_AUXπ like girl, pick one of the valid onesRPMA_E_INVALβ*levelisNULLπ bestie you gotta give it somewhere to put the answer
ngl if you're seeing RPMA_E_INVAL twice in one list, it's not a typo, that's just how the page is set up β¨
π SEE ALSO π
go read these next, they're all part of the same friend group π«Ά
rpma_log_set_function(3)rpma_log_set_threshold(3)librpma(7)- and the link, which is literally: https://pmem.io/rpma/ π
and that's the whole page, bestie, you ate that π stay logged, stay thresholded, mwah π
with love from the RPMA crew, dated 01 April 2024, signing off as rpma_log_get_threshold(3) πβ¨
π¦ 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