Motr  M0
conn_pool.c File Reference
#include <unistd.h>
#include "lib/trace.h"
#include "ut/ut.h"
#include "rpc/conn_pool.h"
#include "rpc/conn_pool_internal.h"
#include "lib/finject.h"
#include "rpc/rpclib.h"
#include "rpc/ut/clnt_srv_ctx.c"
#include "ut/cs_service.h"
#include "ut/misc.h"
Include dependency graph for conn_pool.c:

Go to the source code of this file.

Data Structures

struct  cp_pending_item
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_RPC
 

Functions

static void rpc_conn_pool (void)
 
static bool pending_cp_clink_cb (struct m0_clink *clink)
 
static void rpc_conn_pool_async (void)
 

Variables

static struct m0_cond connection_pending_cond
 
static struct m0_mutex cond_mutex
 
struct m0_ut_suite rpc_conn_pool_ut
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_RPC

Definition at line 25 of file conn_pool.c.

Function Documentation

◆ pending_cp_clink_cb()

static bool pending_cp_clink_cb ( struct m0_clink clink)
static

Definition at line 110 of file conn_pool.c.

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

◆ rpc_conn_pool()

static void rpc_conn_pool ( void  )
static

Definition at line 42 of file conn_pool.c.

Here is the call graph for this function:

◆ rpc_conn_pool_async()

static void rpc_conn_pool_async ( void  )
static

Definition at line 123 of file conn_pool.c.

Here is the call graph for this function:

Variable Documentation

◆ cond_mutex

struct m0_mutex cond_mutex
static

Definition at line 108 of file conn_pool.c.

◆ connection_pending_cond

struct m0_cond connection_pending_cond
static

Definition at line 107 of file conn_pool.c.

◆ rpc_conn_pool_ut

struct m0_ut_suite rpc_conn_pool_ut
Initial value:
= {
.ts_name = "rpc-conn-pool-ut",
.ts_tests = {
{ "rpc-conn-pool", rpc_conn_pool},
{ "rpc-conn-pool-async", rpc_conn_pool_async},
{ NULL, NULL },
},
}
#define NULL
Definition: misc.h:38
static void rpc_conn_pool(void)
Definition: conn_pool.c:42
static void rpc_conn_pool_async(void)
Definition: conn_pool.c:123

Definition at line 181 of file conn_pool.c.