PMWHICHCONTEXT(3)
PMWHICHCONTEXT(3) π
okay bestie, gather round, we're doing a library functions manual moment and honestly? it's giving "tiny function, huge main character energy" β¨
πΈ NAME πΈ
pmWhichContext β identify the current PMAPI context π«Ά
β¨ C SYNOPSIS β¨
like, here's the whole vibe, character for character:
#include <pcp/pmapi.h>
int pmWhichContext(void);
cc ... -lpcp
π DESCRIPTION π
okay so picture this: an application using the Performance Metrics Application Programming Interface (PMAPI) can manipulate several concurrent contexts at once. and each one of those contexts is associated with a source of performance metrics β like pmcd(1) on some host, or an archive of performance metrics as created by pmlogger(1). yes, multiple. at the same time. she contains multitudes π
so what does pmWhichContext do? it returns a handle for the current PMAPI context π and that handle is literally what you feed into the associated PMAPI routines that need a handle to identify a PMAPI context. that's it. that's the whole job. and she does it flawlessly, no cap.
π©Ί DIAGNOSTICS π©Ί
PM_ERR_NOCONTEXTβ no current context π (yeah, there's nothing there, bestie, there is no context to speak of)
π SEE ALSO π
PMAPI(3), pmDestroyContext(3), pmDupContext(3), pmNewContext(3) and pmUseContext(3).
and that's the whole page, my love π go forth and identify your contexts, you absolute icon π
this has been a Performance Co-Pilot production, from the PCP girlies, filed under PMWHICHCONTEXT(3) β periodt π
π¦ 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-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