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) 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.

SEE ALSO

PMAPI(3), PMDA(3), pmdaDaemon(3) and pmdaDSO(3).

Recommended readings

Pages related to pmdaInterfaceMoved you should read also:

Questions & Answers

Helpful answers and articles about pmdaInterfaceMoved you may found on these sites:
Stack Overflow Server Fault Super User Unix & Linux Ask Ubuntu Network Engineering DevOps Raspberry Pi Webmasters Google Search