rpma_log_get_threshold - get the logging threshold level
Contents
Description
rpma_log_get_threshold() gets the current level of the threshold. See rpma_log_set_threshold(3) for
available thresholds and levels.
Errors
rpma_log_get_threshold() can fail with the following errors:
• RPMA_E_INVAL - threshold is not RPMA_LOG_THRESHOLD nor RPMA_LOG_THRESHOLD_AUX
• RPMA_E_INVAL - *level is NULL
Name
rpma_log_get_threshold - get the logging threshold level
Return Value
rpma_log_get_threshold() function returns 0 on success or a negative error code on failure.
See Also
rpma_log_set_function(3), rpma_log_set_threshold(3), librpma(7) and https://pmem.io/rpma/ RPMA 01 April 2024 rpma_log_get_threshold(3)
Synopsis
#include <librpma.h>
int rpma_log_get_threshold(enum rpma_log_threshold threshold, enum rpma_log_level *level);
