rpma_log_get_threshold(3)

πŸ“¦
version 1.3.0 Β· 3 versions
, in ubuntu noble

πŸ’– 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 β€” threshold is not RPMA_LOG_THRESHOLD nor RPMA_LOG_THRESHOLD_AUX πŸ™ˆ like girl, pick one of the valid ones
  • RPMA_E_INVAL β€” *level is NULL πŸ’€ 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 🫢


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