carta
pmdainterfacemoved(3)

pmdainterfacemoved3

Reset internal state of a pmdainterface structure

Part of pmdaInterfaceMoved(3).

C synopsis

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

void pmdaInterfaceMoved(pmdaInterface *dispatch)

cc ... -lpcp_pmda -lpcp

Overview

After a call to either pmdaDaemon(3) or pmdaDSO(3) 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.

From libpcp-pmda3-dev 4.3.2+really4.3.1-0.1 in Debian 10 (Buster). Parsed by carta from the page's man source.