---
name: "pmdastore"
section: "3"
platform: "linux"
package: "libpcp-pmda3-dev"
version: "4.3.2+really4.3.1-0.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pmdaStore"
---

# pmdastore(3)

store a value into a metric for a PMDA

Part of [pmdaStore(3)](/pmdaStore/3.md).

## NAME

**pmdaStore** - store a value into a metric for a PMDA

## C SYNOPSIS

**#include \<pcp/pmapi.h\>**\
 **#include \<pcp/pmda.h\>**

**int pmdaStore(pmResult \****result***, pmdaExt \****pmda***);**

**cc ... -lpcp\_pmda -lpcp**

## DESCRIPTION

As part of the Performance Metrics Domain Agent (PMDA) API (see [**PMDA**(3)](/PMDA/3.md)), **pmdaStore** is the generic callback for storing a value into a metric. **pmdaStore** is usually a no-op as, by default, no metrics can be altered.   Also, the implementation of a store callback which does permit metrics to be altered by [**pmstore**(1)](/pmstore/1.md) is very application dependent.

## DIAGNOSTICS

**pmdaStore** returns **PM\_ERR\_PERMISSION** to indicate that no metrics may be modified.

## CAVEAT

The PMDA must be using  **PMDA\_PROTOCOL\_2** or later, as specified in the call to  [**pmdaDSO**(3)](/pmdaDSO/3.md) or  [**pmdaDaemon**(3)](/pmdaDaemon/3.md).

## SEE ALSO

[**pmstore**(1)](/pmstore/1.md), [**PMAPI**(3)](/PMAPI/3.md), [**PMDA**(3)](/PMDA/3.md), [**pmdaDaemon**(3)](/pmdaDaemon/3.md), [**pmdaDSO**(3)](/pmdaDSO/3.md) and [**pmStore**(3)](/pmStore/3.md).
