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

Go to the source code of this file.

Data Structures

struct  m0_ha_epoch_monitor
 
struct  m0_ha_domain
 

Macros

#define __MOTR_HA_EPOCH_H__
 

Typedefs

typedef void(* m0_ha_client_cb_t) (void *client, const void *data, uint64_t data2)
 

Enumerations

enum  m0_ha_epoch_outcome {
  M0_HEO_CONTINUE, M0_HEO_OK, M0_HEO_OBEY, M0_HEO_DROP,
  M0_HEO_ERROR
}
 

Functions

M0_INTERNAL void m0_ha_domain_init (struct m0_ha_domain *dom, uint64_t epoch)
 
M0_INTERNAL void m0_ha_domain_fini (struct m0_ha_domain *dom)
 
M0_INTERNAL void m0_ha_domain_monitor_add (struct m0_ha_domain *dom, struct m0_ha_epoch_monitor *mon)
 
M0_INTERNAL void m0_ha_domain_monitor_del (struct m0_ha_domain *dom, struct m0_ha_epoch_monitor *mon)
 
M0_INTERNAL uint64_t m0_ha_domain_get_read (struct m0_ha_domain *dom)
 
M0_INTERNAL void m0_ha_domain_put_read (struct m0_ha_domain *dom)
 
M0_INTERNAL uint64_t m0_ha_domain_get_write (struct m0_ha_domain *dom)
 
M0_INTERNAL void m0_ha_domain_put_write (struct m0_ha_domain *dom, uint64_t epoch)
 
M0_INTERNAL int m0_ha_global_init (void)
 
M0_INTERNAL void m0_ha_global_fini (void)
 
M0_INTERNAL int m0_ha_client_add (struct m0_confc *confc)
 
M0_INTERNAL int m0_ha_client_del (struct m0_confc *confc)
 
M0_INTERNAL void m0_ha_clients_iterate (m0_ha_client_cb_t iter, const void *data, uint64_t data2)
 
M0_INTERNAL int m0_ha_epoch_check (const struct m0_rpc_item *item)
 

Variables

M0_EXTERN const uint64_t M0_HA_EPOCH_NONE
 

Macro Definition Documentation

◆ __MOTR_HA_EPOCH_H__

#define __MOTR_HA_EPOCH_H__

Definition at line 26 of file epoch.h.