Motr  M0
service.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/assert.h"
#include "lib/errno.h"
#include "lib/misc.h"
#include "lib/finject.h"
#include "reqh/reqh_service.h"
#include "sns/cm/trigger_fop.h"
#include "sns/cm/service.h"
#include "sns/cm/cm.h"
#include "sns/cm/sns_cp_onwire.h"
Include dependency graph for service.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM
 

Functions

static int rebalance_svc_allocate (struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
 
 M0_CM_TYPE_DECLARE (sns_rebalance, M0_CM_REBALANCE_OPCODE, &rebalance_svc_type_ops, "M0_CST_SNS_REB", M0_CST_SNS_REB)
 
static int rebalance_svc_start (struct m0_reqh_service *service)
 
static void rebalance_svc_stop (struct m0_reqh_service *service)
 
M0_INTERNAL void m0_sns_cm_rebalance_cpx_init (void)
 
M0_INTERNAL void m0_sns_cm_rebalance_cpx_fini (void)
 

Variables

static const struct m0_reqh_service_type_ops rebalance_svc_type_ops
 
static const struct m0_reqh_service_ops rebalance_svc_ops
 
const struct m0_cm_ops sns_rebalance_ops
 
const struct m0_fom_type_ops rebalance_cp_fom_type_ops
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_SNSCM

Definition at line 23 of file service.c.