Motr
M0
|
#include "cm/cm.h"
#include "cm/cp.h"
#include "cm/ag.h"
#include "lib/misc.h"
#include "lib/finject.h"
#include "lib/memory.h"
#include "ut/ut.h"
#include "lib/chan.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "motr/setup.h"
#include "ut/ut_rpc_machine.h"
Go to the source code of this file.
Data Structures | |
struct | m0_ut_cm |
Macros | |
#define | __MOTR_CM_UT_COMMON_SERVICE_H__ |
#define | DUMMY_DBNAME "dummy-db" |
#define | DUMMY_COB_ID 20 |
#define | DUMMY_SERVER_ADDR "0@lo:12345:34:10" |
Enumerations | |
enum | { AG_ID_NR = 100, CM_UT_LOCAL_CP_NR = 4, MAX_CM_NR = 2 } |
Functions | |
void | cm_ut_service_alloc_init (struct m0_reqh *reqh) |
void | cm_ut_service_cleanup () |
Variables | |
struct m0_cm_cp | cm_ut_cp |
struct m0_reqh_service * | cm_ut_service |
struct m0_ut_rpc_mach_ctx | cmut_rmach_ctx |
struct m0_reqh | cm_ut_reqh |
struct m0_ut_cm | cm_ut [MAX_CM_NR] |
struct m0_mutex | cm_wait_mutex |
struct m0_chan | cm_wait |
struct m0_cm_type | cm_ut_cmt |
const struct m0_cm_aggr_group_ops | cm_ag_ut_ops |
uint64_t | ut_cm_id |
bool | test_ready_fop |
#define __MOTR_CM_UT_COMMON_SERVICE_H__ |
Definition at line 25 of file common_service.h.
#define DUMMY_COB_ID 20 |
Definition at line 41 of file common_service.h.
#define DUMMY_DBNAME "dummy-db" |
Definition at line 40 of file common_service.h.
#define DUMMY_SERVER_ADDR "0@lo:12345:34:10" |
Definition at line 42 of file common_service.h.
anonymous enum |
Enumerator | |
---|---|
AG_ID_NR | |
CM_UT_LOCAL_CP_NR | |
MAX_CM_NR |
Definition at line 48 of file common_service.h.
void cm_ut_service_alloc_init | ( | struct m0_reqh * | reqh | ) |
Definition at line 231 of file common_service.c.
void cm_ut_service_cleanup | ( | ) |
Definition at line 242 of file common_service.c.
const struct m0_cm_aggr_group_ops cm_ag_ut_ops |
Definition at line 134 of file common_service.c.
Definition at line 31 of file common_service.c.
struct m0_cm_type cm_ut_cmt |
struct m0_cm_cp cm_ut_cp |
Definition at line 62 of file common_service.h.
struct m0_reqh cm_ut_reqh |
struct m0_reqh_service* cm_ut_service |
Definition at line 64 of file common_service.h.
struct m0_chan cm_wait |
struct m0_mutex cm_wait_mutex |
struct m0_ut_rpc_mach_ctx cmut_rmach_ctx |
Definition at line 33 of file common_service.c.
bool test_ready_fop |
Definition at line 143 of file common_service.c.
uint64_t ut_cm_id |
Definition at line 39 of file common_service.c.