pmdaDSO
initialize the PMDA to run as a DSO
- Provided by: libpcp-pmda3-dev (Version: 3.8.12ubuntu1)
- Source: pcp
- Report a bug
initialize the PMDA to run as a DSO
#include <pcp/pmapi.h>
#include <pcp/impl.h>
#include <pcp/pmda.h>
int pmdaDSO(pmdaInterface *dispatch, int interface,
char *name, char *helptext);
cc ... -lpcp_pmda -lpcp
pmdaDSO initializes the pmdaInterface structure to use the interface extensions, assuming the PMDA(3) is to be run as a DSO. The pmdaInterface structure is initialized with:
The callbacks are initialized to pmdaProfile(3), pmdaFetch(3), pmdaDesc(3), pmdaText(3), pmdaInstance(3) and pmdaStore(3).
The interface structure also contains the domain of the PMDA(3), which is defined in the pmcd(1) configuration file. The domain is used to initialize the metric and instance descriptors (see pmdaInit(3)).
The PMDA must be using PMDA_INTERFACE_2 or later.
pmcd(1), PMAPI(3), PMDA(3), pmdaDaemon(3), pmdaInit(3) and pmdaText(3).