PMDAHELP(3)
π PMDAHELP(3) π
ok so bestie, gather round, because this is the help text support page for a PMDA, and it's literally the manual you're reading right now (meta, I know). We're in the Library Functions Manual part of the PCP docs, and yes, the manual name is PMDAHELP β we been knew. π«Ά
β¨ NAME β¨
pmdaOpenHelp, pmdaGetHelp, pmdaGetInDomHelp, pmdaCloseHelp β help text support for a PMDA
π C SYNOPSIS π
#include <pcp/pmapi.h>
#include <pcp/pmda.h>
int pmdaOpenHelp(const char *fname);
char *pmdaGetHelp(int handle, pmID pmid, int type);
char *pmdaGetInDomHelp(int handle, pmInDom indom, int type);
void pmdaCloseHelp(int handle);
cc ... -lpcp_pmda -lpcp
π¦ DESCRIPTION π¦
So, as part of the Performance Metrics Domain Agent (PMDA) API β that's the one in PMDA(3), go look β this lil squad of routines is what implements the processing of a PMDA's metric help information. That's the whole job. That's the vibe.
real talk: these routines are really intended for internal use, and should not need to be called directly from any PMDA code. like, they're backstage crew, not main characters. don't @ them. π
Here's the tea, briefly: the base name of the help text file β the one that got created by newhelp(1) β gets passed in via a -h command line option if you're a daemon PMDA, or as an argument to pmdaDaemon(3) or pmdaDSO(3). β¨ Then pmdaOpenHelp gets called from pmdaInit(3) and hands back a handle, which is what you use in all the calls after that to say "yeah, this particular help text collection, the one right here". Each PMDA typically has only one such collection, so it's not a crowd. π
Requests for help text get passed along to pmdaText(3), which then calls pmdaGetHelp or pmdaGetInDomHelp as required. Chain of command, bestie. π
And other than the error cases in pmdaOpenHelp, pmdaCloseHelp is not called. It's giving "invited but never shows up". π
π CAVEAT π
The PMDA must be using PMDA_INTERFACE_2 or later, as specified in the call to pmdaDSO(3) or pmdaDaemon(3). No earlier interface, no exceptions, periodt. β
πΈ DIAGNOSTICS πΈ
pmdaOpenHelpreturns a negative value on failure β and that value is suitable for decoding withpmErrStr(3). πpmdaGetHelpandpmdaGetInDomHelpreturnNULLif the corresponding help text does not exist. gone, not found, no thoughts head empty. π
π SEE ALSO π
newhelp(1), PMAPI(3), PMDA(3), pmdaDaemon(3), pmdaDSO(3), pmdaInit(3), pmdaText(3) and pmErrStr(3).
ok that's the page!! no cap, every single flag, handle and caveat is in there. π₯°
this whole thing comes to you courtesy of Performance Co-Pilot (that's the PCP girlies π), and yeah, it's the PMDAHELP(3) page β thanks for reading, love u, bye!! πβ¨ππ¦
π¦ 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
- Copyright (c) 2000-2004 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