.\" Extracted by src2man from /build/rpma-11eW7Q/rpma-1.3.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_log_get_threshold 3 "29 May 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_log_get_threshold \fP- get the logging threshold level .SH SYNOPSIS .nf .fam C #include int \fBrpma_log_get_threshold\fP(enum rpma_log_threshold \fIthreshold\fP, enum rpma_log_level *\fIlevel\fP); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_log_get_threshold\fP() gets the current \fIlevel\fP of the \fIthreshold\fP. See \fBrpma_log_set_threshold\fP(3) for available thresholds and levels. .SH RETURN VALUE \fBrpma_log_get_threshold\fP() function returns 0 on success or a negative error code on failure. .SH ERRORS \fBrpma_log_get_threshold\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - \fIthreshold\fP is not RPMA_LOG_THRESHOLD nor RPMA_LOG_THRESHOLD_AUX .IP \(bu 3 RPMA_E_INVAL - *\fIlevel\fP is NULL .SH SEE ALSO \fBrpma_log_set_function\fP(3), \fBrpma_log_set_threshold\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/