Motr  M0
rpc_helpers.c File Reference
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "rpc/rpc.h"
#include "ut/ut.h"
Include dependency graph for rpc_helpers.c:

Go to the source code of this file.

Functions

M0_INTERNAL int m0_ut_rpc_service_start (struct m0_reqh_service **service, const struct m0_reqh_service_type *type)
 
M0_INTERNAL int m0_ut_rpc_machine_start (struct m0_rpc_machine *mach, struct m0_net_xprt *xprt, const char *ep_addr)
 
M0_INTERNAL void m0_ut_rpc_machine_stop (struct m0_rpc_machine *mach)
 

Variables

static struct m0_reqh g_reqh
 
static struct m0_net_domain g_net_dom
 
static struct m0_net_buffer_pool g_buf_pool
 

Function Documentation

◆ m0_ut_rpc_machine_start()

M0_INTERNAL int m0_ut_rpc_machine_start ( struct m0_rpc_machine mach,
struct m0_net_xprt xprt,
const char *  ep_addr 
)

Initialises net and rpc layers, performs m0_rpc_machine_init().

Definition at line 46 of file rpc_helpers.c.

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

◆ m0_ut_rpc_machine_stop()

M0_INTERNAL void m0_ut_rpc_machine_stop ( struct m0_rpc_machine mach)

Performs m0_rpc_machine_fini(), finalises rpc and net layers.

Definition at line 93 of file rpc_helpers.c.

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

◆ m0_ut_rpc_service_start()

M0_INTERNAL int m0_ut_rpc_service_start ( struct m0_reqh_service **  service,
const struct m0_reqh_service_type type 
)

Initializes and start reqh service of passed type.

Definition at line 32 of file rpc_helpers.c.

Here is the call graph for this function:

Variable Documentation

◆ g_buf_pool

struct m0_net_buffer_pool g_buf_pool
static

Definition at line 30 of file rpc_helpers.c.

◆ g_net_dom

struct m0_net_domain g_net_dom
static

Definition at line 29 of file rpc_helpers.c.

◆ g_reqh

struct m0_reqh g_reqh
static

Definition at line 28 of file rpc_helpers.c.