pmem_log_get_threshold - Man Page

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

pmem_log_get_threshold() gets the current value of the threshold. See pmem_log_set_threshold(3) for available thresholds and values.

Return Value

On success, pmem_log_get_threshold() function returns 0 and writes into value the current value of the threshold. On failure, it returns a non-zero value and sets errno. In case of failure, the value contents is undefined.

Errors

pmem_log_get_threshold() can fail with the following errors:

See Also

pmem_log_set_function(3), pmem_log_set_threshold(3).

Referenced By

pmem_log_set_function(3), pmem_log_set_threshold(3).

2024-07-18 PMDK - PMDK Programmer's Manual