Motr  M0
Copy packet internal
Collaboration diagram for Copy packet internal:

Functions

 M0_TL_DESCR_DEFINE (cp_data_buf, "copy packet data buffers", M0_INTERNAL, struct m0_net_buffer, nb_extern_linkage, nb_magic, M0_NET_BUFFER_LINK_MAGIC, CM_CP_DATA_BUF_HEAD_MAGIX)
 
 M0_TL_DEFINE (cp_data_buf, M0_INTERNAL, struct m0_net_buffer)
 
 M0_TL_DESCR_DEFINE (proxy_cps, "copy packets in proxy", M0_INTERNAL, struct m0_cm_cp, c_cm_proxy_linkage, c_magix, CM_CP_MAGIX, CM_PROXY_CP_HEAD_MAGIX)
 
 M0_TL_DEFINE (proxy_cps, M0_INTERNAL, struct m0_cm_cp)
 
 M0_BOB_DEFINE (static, &cp_bob, m0_cm_cp)
 
M0_INTERNAL void m0_cm_cp_fom_fini (struct m0_fom *fom)
 
static uint64_t cp_fom_locality (const struct m0_fom *fom)
 
static int cp_fom_tick (struct m0_fom *fom)
 
M0_INTERNAL int m0_cm_cp_fom_create (struct m0_fop *fop, struct m0_fop *r_fop, struct m0_fom **m, struct m0_reqh *reqh)
 

Variables

static const struct m0_bob_type cp_bob
 
static const struct m0_fom_ops cp_fom_ops
 

Detailed Description

See also
Copy Packet DLD and Logical Specification

Function Documentation

◆ cp_fom_locality()

static uint64_t cp_fom_locality ( const struct m0_fom fom)
static

Definition at line 424 of file cp.c.

◆ cp_fom_tick()

static int cp_fom_tick ( struct m0_fom fom)
static
Todo:
Revise it.

Definition at line 431 of file cp.c.

Here is the call graph for this function:

◆ M0_BOB_DEFINE()

M0_BOB_DEFINE ( static  ,
cp_bob,
m0_cm_cp   
)

◆ m0_cm_cp_fom_create()

M0_INTERNAL int m0_cm_cp_fom_create ( struct m0_fop fop,
struct m0_fop r_fop,
struct m0_fom **  m,
struct m0_reqh reqh 
)

Definition at line 454 of file cp.c.

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

◆ m0_cm_cp_fom_fini()

M0_INTERNAL void m0_cm_cp_fom_fini ( struct m0_fom fom)

Definition at line 412 of file cp.c.

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

◆ M0_TL_DEFINE() [1/2]

M0_TL_DEFINE ( cp_data_buf  ,
M0_INTERNAL  ,
struct m0_net_buffer   
)

◆ M0_TL_DEFINE() [2/2]

M0_TL_DEFINE ( proxy_cps  ,
M0_INTERNAL  ,
struct m0_cm_cp   
)

◆ M0_TL_DESCR_DEFINE() [1/2]

M0_TL_DESCR_DEFINE ( cp_data_buf  ,
"copy packet data buffers"  ,
M0_INTERNAL  ,
struct m0_net_buffer  ,
nb_extern_linkage  ,
nb_magic  ,
M0_NET_BUFFER_LINK_MAGIC  ,
CM_CP_DATA_BUF_HEAD_MAGIX   
)

◆ M0_TL_DESCR_DEFINE() [2/2]

M0_TL_DESCR_DEFINE ( proxy_cps  ,
"copy packets in proxy"  ,
M0_INTERNAL  ,
struct m0_cm_cp  ,
c_cm_proxy_linkage  ,
c_magix  ,
CM_CP_MAGIX  ,
CM_PROXY_CP_HEAD_MAGIX   
)

Variable Documentation

◆ cp_bob

const struct m0_bob_type cp_bob
static
Initial value:
= {
.bt_name = "copy packet",
.bt_magix_offset = M0_MAGIX_OFFSET(struct m0_cm_cp, c_magix),
.bt_magix = CM_CP_MAGIX,
.bt_check = NULL
}
#define NULL
Definition: misc.h:38
Definition: cp.h:160
#define M0_MAGIX_OFFSET(type, field)
Definition: misc.h:356

Definition at line 397 of file cp.c.

◆ cp_fom_ops

const struct m0_fom_ops cp_fom_ops
static
Initial value:
= {
.fo_fini = m0_cm_cp_fom_fini,
.fo_tick = cp_fom_tick,
.fo_home_locality = cp_fom_locality
}
static int cp_fom_tick(struct m0_fom *fom)
Definition: cp.c:431
M0_INTERNAL void m0_cm_cp_fom_fini(struct m0_fom *fom)
Definition: cp.c:412
static uint64_t cp_fom_locality(const struct m0_fom *fom)
Definition: cp.c:424

Copy packet FOM operations

Definition at line 448 of file cp.c.