pmInDom_domain(3)

helper methods for manipulating instance domain identifiers

Section 3 libpcp3-dev bookworm source

Description

PMINDOM_BUILD

NAME

pmInDom_build, pmInDom_domain, pmInDom_serial - helper methods for manipulating instance domain identifiers

C SYNOPSIS

#include <pcp/pmapi.h>

pmInDom pmInDom_build(unsigned int domain, unsigned int serial);
unsigned int pmInDom_domain(pmInDom
indom);
unsigned int pmInDom_serial(pmInDom
indom);

cc ... -lpcp

DESCRIPTION

Within the Performance Co-Pilot (PCP) each instance domain is assigned a unique Instance Domain Identifier (pmInDom). Internally a pmInDom is constructed from 2 fields: the domain number (of the associated Performance Metrics Domain Agent, or PMDA) and the serial number (assigned by the PMDA).

pmInDom_build constructs a pmInDom from domain and serial.

pmInDom_domain and pmInDom_serial return the respective fields from indom.

SEE ALSO

PMAPI(3) and pmInDomStr(3).