---
name: "rpma_log_get_threshold"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_log_get_threshold"
---

# rpma\_log\_get\_threshold(3)

get the logging threshold level

## 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);
```

## DESCRIPTION

**rpma\_log\_get\_threshold**() gets the current *level* of the *threshold*. See [**rpma\_log\_set\_threshold**(3)](/rpma_log_set_threshold/3.md) for available thresholds and levels.

## RETURN VALUE

**rpma\_log\_get\_threshold**() function returns 0 on success or a negative error code on failure.

## 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

## SEE ALSO

[**rpma\_log\_set\_function**(3)](/rpma_log_set_function/3.md), [**rpma\_log\_set\_threshold**(3)](/rpma_log_set_threshold/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
