---
name: "pmInDom_build"
section: "3"
platform: "linux"
package: "pcp"
version: "7.2.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pmInDom_build"
---

# pmInDom\_build(3)

helper methods for manipulating instance domain identifiers

## 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)](/PMAPI/3.md) and [**pmInDomStr**(3)](/pmInDomStr/3.md).
