Motr  M0
module.c File Reference
#include "net/module.h"
#include "module/instance.h"
#include "net/lnet/lnet.h"
#include "net/libfab/libfab.h"
#include "net/sock/sock.h"
#include "net/net.h"
#include "net/bulk_mem.h"
#include "lib/memory.h"
Include dependency graph for module.c:

Go to the source code of this file.

Functions

static struct m0_modulenet_module_create (struct m0 *instance)
 
static int level_net_enter (struct m0_module *module)
 
static void level_net_leave (struct m0_module *module)
 
static int level_net_xprt_enter (struct m0_module *module)
 
static void level_net_xprt_leave (struct m0_module *module)
 
 M0_BASSERT (ARRAY_SIZE(net_xprt_mods)==ARRAY_SIZE(M0_FIELD_VALUE(struct m0_net_module, n_xprts)))
 

Variables

const struct m0_module_type m0_net_module_type
 
static const struct m0_modlev levels_net []
 
static const struct m0_modlev levels_net_xprt []
 
struct {
   const char *   name
 
   struct m0_net_xprt *   xprt
 
net_xprt_mods []
 

Function Documentation

◆ level_net_enter()

static int level_net_enter ( struct m0_module module)
static

Definition at line 110 of file module.c.

◆ level_net_leave()

static void level_net_leave ( struct m0_module module)
static

Definition at line 133 of file module.c.

◆ level_net_xprt_enter()

static int level_net_xprt_enter ( struct m0_module module)
static

Definition at line 144 of file module.c.

Here is the call graph for this function:

◆ level_net_xprt_leave()

static void level_net_xprt_leave ( struct m0_module module)
static

Definition at line 151 of file module.c.

Here is the call graph for this function:

◆ M0_BASSERT()

M0_BASSERT ( ARRAY_SIZE(net_xprt_mods = =ARRAY_SIZE(M0_FIELD_VALUE(struct m0_net_module, n_xprts)))

◆ net_module_create()

static struct m0_module * net_module_create ( struct m0 instance)
static

Definition at line 88 of file module.c.

Here is the call graph for this function:

Variable Documentation

◆ levels_net

const struct m0_modlev levels_net[]
static
Initial value:
= {
.ml_name = "M0_LEVEL_NET",
.ml_enter = level_net_enter,
.ml_leave = level_net_leave
}
}
static int level_net_enter(struct m0_module *module)
Definition: module.c:110
static void level_net_leave(struct m0_module *module)
Definition: module.c:133

Definition at line 43 of file module.c.

◆ levels_net_xprt

const struct m0_modlev levels_net_xprt[]
static
Initial value:
= {
.ml_name = "M0_LEVEL_NET_DOMAIN",
.ml_enter = level_net_xprt_enter,
}
}
static int level_net_xprt_enter(struct m0_module *module)
Definition: module.c:144
static void level_net_xprt_leave(struct m0_module *module)
Definition: module.c:151

Definition at line 51 of file module.c.

◆ name

const char* name

Definition at line 60 of file module.c.

◆ net_xprt_mods

struct { ... } net_xprt_mods[]
Initial value:
= {
.name = "\"lnet\" m0_net_xprt_module",
.xprt = (struct m0_net_xprt *)&m0_net_lnet_xprt
},
.name = "\"bulk-mem\" m0_net_xprt_module",
.xprt = (struct m0_net_xprt *)&m0_net_bulk_mem_xprt
},
.name = "\"sock\" m0_net_xprt_module",
.xprt = (struct m0_net_xprt *)&m0_net_sock_xprt
},
}
const struct m0_net_xprt m0_net_lnet_xprt
Definition: lnet_xo.c:679
const struct m0_net_xprt m0_net_sock_xprt
Definition: sock.c:3927
const struct m0_net_xprt m0_net_bulk_mem_xprt
Definition: mem_xprt_xo.c:761

◆ xprt

struct m0_net_xprt* xprt

Definition at line 61 of file module.c.