Motr  M0
counter.h File Reference
#include "lib/types.h"
#include "lib/tlist.h"
#include "addb2/addb2.h"
Include dependency graph for counter.h:

Go to the source code of this file.

Data Structures

struct  m0_addb2_counter_data
 
struct  m0_addb2_counter
 
struct  m0_addb2_list_counter
 
struct  m0_addb2_local_counter
 

Macros

#define __MOTR_ADDB2_COUNTER_H__
 
#define M0_ADDB2_TIMED_0(id, datum, ...)
 
#define M0_ADDB2_TIMED(id, counter, datum, ...)
 

Enumerations

enum  { M0_ADDB2_COUNTER_VALS }
 

Functions

void m0_addb2_counter_add (struct m0_addb2_counter *counter, uint64_t label, int idx)
 
void m0_addb2_counter_del (struct m0_addb2_counter *counter)
 
void m0_addb2_counter_mod (struct m0_addb2_counter *counter, int64_t val)
 
void m0_addb2_counter_mod_with (struct m0_addb2_counter *counter, int64_t val, uint64_t datum)
 
void m0_addb2_list_counter_add (struct m0_addb2_list_counter *counter, struct m0_tl *list, uint64_t label, int idx)
 
void m0_addb2_list_counter_del (struct m0_addb2_list_counter *counter)
 
void m0_addb2_clock_add (struct m0_addb2_sensor *clock, uint64_t label, int idx)
 
void m0_addb2_clock_del (struct m0_addb2_sensor *clock)
 
int m0_addb2_local_counter_init (struct m0_addb2_local_counter *lc, uint64_t id, uint64_t counter)
 
void m0_addb2_local_counter_mod (struct m0_addb2_local_counter *lc, uint64_t val, uint64_t datum)
 

Macro Definition Documentation

◆ __MOTR_ADDB2_COUNTER_H__

#define __MOTR_ADDB2_COUNTER_H__

Definition at line 26 of file counter.h.