---
name: "pmdainterfacemoved"
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/pmdaInterfaceMoved"
---

# pmdainterfacemoved(3)

reset internal state of a pmdaInterface structure

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

## NAME

**pmdaInterfaceMoved** - reset internal state of a *pmdaInterface* structure

## C SYNOPSIS

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

**void pmdaInterfaceMoved(pmdaInterface \****dispatch***)**

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

## DESCRIPTION

After a call to either [**pmdaDaemon**(3)](/pmdaDaemon/3.md) or [**pmdaDSO**(3)](/pmdaDSO/3.md) to initialize the **pmdaInterface** structure, if the caller needs to relocate or move the structure for any reason then **pmdaInterfaceMoved** needs to be called with the new base address of the *pmdaInterface* routine as specified by *dispatch*.

**pmdaInterfaceMoved** will re-establish the internal integrity of the *pmdaInterface* structure at the new location before any other routine in *libpcp\_pmda* called.

## CAVEAT

The PMDA must be using **PMDA\_INTERFACE\_2** or later.

## SEE ALSO

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