1PMFREERESULT(3)            Library Functions Manual            PMFREERESULT(3)
2
3
4

NAME

6       pmFreeResult - release storage allocated for performance metrics values
7

C SYNOPSIS

9       #include <pcp/pmapi.h>
10
11       void pmFreeResult(pmResult *result);
12
13       cc ... -lpcp
14

DESCRIPTION

16       The  variable  sized results returned by pmFetch(3) are allocated below
17       the Performance Metrics Application Programming Interface (PMAPI) using
18       a  combination  of  dynamic (i.e. malloc(3)) and specialized allocation
19       strategies.
20
21       Applications should call pmFreeResult to release the storage previously
22       allocated  for  result  by  pmFetch(3),  when the application no longer
23       requires access to the pmResult structure.
24
25       Under no  circumstances  should  an  application  use  free(result)  to
26       release storage previously allocated for a pmResult by pmFetch(3).
27

SEE ALSO

29       PMAPI(3) and pmFetch(3).
30
31
32
33Performance Co-Pilot                  PCP                      PMFREERESULT(3)
Impressum