PMLOOKUPINDOM(3)
π PMLOOKUPINDOM π
okay bestie, welcome to pmLookupInDom from the Library Functions Manual β she's a lil PCP function and she's literally here to translate an instance name into an instance identifier β¨
πΈ NAME πΈ
pmLookupInDom β translate an instance name into an instance identifier π¦
π C SYNOPSIS π
#include <pcp/pmapi.h>
int pmLookupInDom(pmInDom indom, const char *name);
cc ... -lpcp
β¨ DESCRIPTION β¨
okay so here's the vibe π«Ά β you hand her an instance domain, <pink>indom</pink>, in the current Performance Metrics Application Programming Interface (PMAPI) context, and she goes and finds the instance whose external identification is <pink>name</pink>β¦ and then she hands you back the internal instance identifier π«
no cap, one lil detail: only the leading non-space characters of <pink>name</pink> get used to identify the instance. so like, don't come at her with trailing nonsense, she's not reading it π
where does <pink>indom</pink> come from, you ask? typically it's extracted from a <pink>pmDesc</pink> structure, right after you've called pmLookupDesc(3) for whatever performance metric you're obsessed with π
and the slay part: pmLookupInDom returns a positive instance identifier on success. periodt π
π DIAGNOSTICS π
PM_ERR_INDOMβ<pink>indom</pink>is not a valid instance domain identifier. it's giving invalid, bestie πPM_ERR_INSTβ the external instance name is not known for the instance domain<pink>indom</pink>in the current PMAPI context. she looked. she did not find. π₯²
π SEE ALSO π
PMAPI(3), pmGetConfig(3), pmGetInDom(3), pmLookupDesc(3), pmLookupInDomArchive(3), pmNameInDom(3), pcp.conf(5) and pcp.env(5) π
and that's the whole page, bestie!! brought to you by Performance Co-Pilot (aka PCP) π this was PMLOOKUPINDOM(3), mwah, go forth and look up those instance domains π§β¨π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: libpcp4-dev 7.1.1-1
- ubuntu stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms