Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   mmv_inc_value    ( 3 )

обновить значение в файле значений сопоставления памяти (update a value in a Memory Mapped Value file)

Имя (Name)

mmv_inc_value - update a value in a Memory Mapped Value file


Синопсис C (C Synopsis)

#include <pcp/pmapi.h> #include <pcp/mmv_stats.h>

void mmv_inc_value(void *addr, pmAtomValue *val, double inc);

cc ... -lpcp_mmv -lpcp


Описание (Description)

mmv_inc_value provides a convenient way of updating a value returned by the mmv_lookup_value_desc. addr is the address returned from mmv_stats_init().

The value of the inc is internally cast to match the type of the metric and then added to the previous value of the metric.


Смотри также (See also)

mmv_stats_init(3), mmv_lookup_value_desc(3) and mmv(5).