Motr  M0
ha.c File Reference
#include "lib/trace.h"
#include "ha/ha.h"
#include "ut/ut.h"
#include "lib/memory.h"
#include "lib/mutex.h"
#include "lib/chan.h"
#include "ha/entrypoint.h"
#include "ha/ut/helper.h"
Include dependency graph for ha.c:

Go to the source code of this file.

Data Structures

struct  ha_ut_usecase_ctx
 
struct  ha_ut_wait_ctx
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT
 

Functions

static struct ha_ut_usecase_ctxha_ut_ha2usecase_ctx (struct m0_ha *ha)
 
static void ha_ut_usecase_link_check (struct ha_ut_usecase_ctx *huc, struct m0_ha_link *hl)
 
static void ha_ut_usecase_entrypoint_request (struct m0_ha *ha, const struct m0_ha_entrypoint_req *req, const struct m0_uint128 *req_id)
 
static void ha_ut_usecase_entrypoint_replied (struct m0_ha *ha, struct m0_ha_entrypoint_rep *rep)
 
static void ha_ut_usecase_msg_received (struct m0_ha *ha, struct m0_ha_link *hl, struct m0_ha_msg *msg, uint64_t tag)
 
static void ha_ut_usecase_msg_is_delivered (struct m0_ha *ha, struct m0_ha_link *hl, uint64_t tag)
 
static void ha_ut_usecase_msg_is_not_delivered (struct m0_ha *ha, struct m0_ha_link *hl, uint64_t tag)
 
static void ha_ut_usecase_link_connected (struct m0_ha *ha, const struct m0_uint128 *req_id, struct m0_ha_link *hl)
 
static void ha_ut_usecase_link_reused (struct m0_ha *ha, const struct m0_uint128 *req_id, struct m0_ha_link *hl)
 
static void ha_ut_usecase_link_is_disconnecting (struct m0_ha *ha, struct m0_ha_link *hl)
 
static void ha_ut_usecase_link_disconnected (struct m0_ha *ha, struct m0_ha_link *hl)
 
static bool ha_ut_ha_wait_available (struct m0_clink *clink)
 
void m0_ha_ut_ha_usecase (void)
 

Variables

static const struct m0_ha_ops ha_ut_usecase_ha_ops