PMAPI_INTERNAL(3)
π PMAPI_INTERNAL π
okay bestie, welcome to the internal manual page β PMAPI_INTERNAL(3) from the Library Functions Manual π«Ά this is the backstage pass, the group chat only the devs are in, so let's get into it β¨
πΈ NAME πΈ
PMAPI_INTERNAL β internal details for the Performance Metrics Application Programming Interface π
β¨ C SYNOPSIS β¨
like, here's the whole vibe, verbatim, no cap:
#include "pmapi.h"
#include "libpcp.h"
... assorted routines ...
cc ... -lpcp
π¨ CAVEAT π¨
listen, this is not a drill. This documentation is intended for internal Performance Co-Pilot (PCP) developer use. π
These interfaces are not part of the PCP APIs that are guaranteed to remain fixed across releases π and they may not work, or may provide different semantics at some point in the future. so yeah, it's giving "use at your own risk", fr fr.
π¦ DESCRIPTION π¦
Refer to PMAPI(3) for general information about the external interfaces defined in <pcp/pmapi.h>. The interfaces described here assume that context β like, they're literally standing on that context's shoulders π
π§ MULTI-THREADED APPLICATIONS π§
okay so this is the big one, and the tea is spicy πΆοΈ
The following groups of internal functions and services in libpcp are restricted to being called from a single thread, and this is enforced by returning PM_ERR_THREAD when an attempt to call the routines in each group from more than one thread is detected. not me getting caught lacking by the error code π
- The interval timer services use global state with semantics that demand it is only used in the context of a single thread, so
__pmAFregister(3),__pmAFunregister(3),__pmAFblock(3),__pmAFunblock(3)and__pmAFisempty(3). β° - The following access control manipulation routines that are principally intended for single-threaded applications:
__pmAccAddOp,__pmAccSaveHosts,__pmAccRestoreHosts,__pmAccFreeSavedHosts,__pmAccAddHost,__pmAccAddClient,__pmAccDelClientand__pmAccDumpHosts. π - The following routines that identify pmlogger control ports and are principally intended for single-threaded applications:
__pmLogFindPortand__pmLogFindLocalPorts. π
π SEE ALSO π
and that's the whole page, bestie, you ate it π β¨
Performance Co-Pilot Β· PCP Β· PMAPI_INTERNAL(3) β mwah, xoxo, go read PMAPI(3) next πππ¦
π¦ 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) 2016 Red Hat
- 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