PMAPI_INTERNAL(3)         Library Functions Manual         PMAPI_INTERNAL(3)

NAME         top

       PMAPI_INTERNAL  - internal details for the Performance Metrics Appli‐
       cation Programming Interface

C SYNOPSIS         top

       #include "pmapi.h"
       #include "libpcp.h"

        ... assorted routines ...

       cc ... -lpcp

CAVEAT         top

       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.

DESCRIPTION         top

       Refer to PMAPI(3) for general information about the external
       interfaces defined in <pcp/pmapi.h>.  The interfaces described here
       assume that context.


       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.

       1.  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).

       2.  The following access control manipulation routines that are
           principally intended for single-threaded applications:
           __pmAccAddOp, __pmAccSaveHosts, __pmAccRestoreHosts,
           __pmAccFreeSavedHosts, __pmAccAddHost, __pmAccAddClient,
           __pmAccDelClient and __pmAccDumpHosts.

       3.  The following routines that identify pmlogger control ports and
           are principally intended for single-threaded applications:
           __pmLogFindPort and __pmLogFindLocalPorts.

SEE ALSO         top


COLOPHON         top

       This page is part of the PCP (Performance Co-Pilot) project.
       Information about the project can be found at ⟨⟩.
       If you have a bug report for this manual page, send it to  This page was obtained from the project's upstream
       Git repository ⟨⟩ on
       2017-11-25.  (At that time, the date of the most recent commit that
       was found in the repository was 2017-11-24.)  If you discover any
       rendering problems in this HTML version of the page, or you believe
       there is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to

Performance Co-Pilot                 PCP                   PMAPI_INTERNAL(3)