Motr  M0
isc.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "ut/ut.h"
#include "ut/misc.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "rpc/rpc_machine.h"
#include "iscservice/isc.h"
#include "iscservice/isc_service.h"
#include "iscservice/ut/common.h"
Include dependency graph for isc.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT
 

Functions

static void init (void)
 
static void fini (void)
 
static int null_computation (struct m0_buf *in, struct m0_buf *out, struct m0_isc_comp_private *comp_data, int *rc)
 
void comp_register (void *args)
 
static void fid_set (void *fid, int tid)
 
static void test_register (void)
 
static void test_init_fini (void)
 

Variables

static struct m0_reqh reqh
 
static struct m0_rpc_machine rpc_machine
 
static struct m0_reqh_serviceisc
 
struct m0_ut_suite isc_api_ut
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT

Definition at line 21 of file isc.c.

Function Documentation

◆ comp_register()

void comp_register ( void *  args)

Definition at line 71 of file isc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fid_set()

static void fid_set ( void *  fid,
int  tid 
)
static

Definition at line 82 of file isc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fini()

static void fini ( void  )
static

Definition at line 55 of file isc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

static void init ( void  )
static

Definition at line 37 of file isc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ null_computation()

static int null_computation ( struct m0_buf in,
struct m0_buf out,
struct m0_isc_comp_private comp_data,
int *  rc 
)
static

Definition at line 64 of file isc.c.

Here is the caller graph for this function:

◆ test_init_fini()

static void test_init_fini ( void  )
static

Definition at line 116 of file isc.c.

Here is the call graph for this function:

◆ test_register()

static void test_register ( void  )
static

Definition at line 87 of file isc.c.

Here is the call graph for this function:

Variable Documentation

◆ isc

struct m0_reqh_service* isc
static

Definition at line 35 of file isc.c.

◆ isc_api_ut

struct m0_ut_suite isc_api_ut
Initial value:
= {
.ts_name = "isc-api-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{"init", test_init_fini, "Nachiket"},
{"comp-register", test_register, "Nachiket"},
}
}
static void test_init_fini(void)
Definition: isc.c:116
#define NULL
Definition: misc.h:38
static void test_register(void)
Definition: isc.c:87

Definition at line 122 of file isc.c.

◆ reqh

struct m0_reqh reqh
static

Definition at line 33 of file isc.c.

◆ rpc_machine

struct m0_rpc_machine rpc_machine
static

Definition at line 34 of file isc.c.