Motr  M0
graph_xc.c File Reference
#include "lib/misc.h"
#include "lib/assert.h"
#include "xcode/xcode.h"
#include "graph/graph.h"
#include "graph/graph_xc.h"
Include dependency graph for graph_xc.c:

Go to the source code of this file.

Data Structures

struct  _m0_graph_s
 
struct  _m0_garc_s
 
struct  _m0_gvertice_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_graph_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_garc_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_gvertice_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_graph)==144U)
 
 M0_BASSERT (sizeof((struct m0_graph *) 0) ->g_anchor==144U)
 
 M0_BASSERT (offsetof(struct m0_graph, g_anchor)==0U)
 
 M0_BASSERT (sizeof(struct m0_garc)==48U)
 
 M0_BASSERT (sizeof((struct m0_garc *) 0) ->as_fid==16U)
 
 M0_BASSERT (offsetof(struct m0_garc, as_fid)==0U)
 
 M0_BASSERT (offsetof(struct m0_garc, as_local)==16U)
 
 M0_BASSERT (offsetof(struct m0_garc, as_remote)==32U)
 
 M0_BASSERT (sizeof(struct m0_gvertice)==144U)
 
 M0_BASSERT (sizeof((struct m0_gvertice *) 0) ->vh_typeid==8U)
 
 M0_BASSERT (offsetof(struct m0_gvertice, vh_typeid)==0U)
 
 M0_BASSERT (offsetof(struct m0_gvertice, vh_fid)==8U)
 
 M0_BASSERT (offsetof(struct m0_gvertice, vh_gen)==24U)
 
 M0_BASSERT (offsetof(struct m0_gvertice, vh_cookie)==32U)
 
 M0_BASSERT (offsetof(struct m0_gvertice, vh_next)==48U)
 
 M0_BASSERT (offsetof(struct m0_gvertice, vh_prev)==96U)
 
M0_INTERNAL void m0_xc_m0_graph_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_garc_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_gvertice_struct_init (void)
 
M0_INTERNAL void m0_xc_graph_graph_init (void)
 
M0_INTERNAL void m0_xc_graph_graph_fini (void)
 

Variables

struct m0_xcode_typem0_graph_xc = &_m0_graph._type
 
struct m0_xcode_typem0_garc_xc = &_m0_garc._type
 
struct m0_xcode_typem0_gvertice_xc = &_m0_gvertice._type
 
static struct _m0_graph_s _m0_graph
 
static struct _m0_garc_s _m0_garc
 
static struct _m0_gvertice_s _m0_gvertice
 

Function Documentation

◆ M0_BASSERT() [1/19]

M0_BASSERT ( offsetof(struct _m0_graph_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [2/19]

M0_BASSERT ( offsetof(struct _m0_garc_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [3/19]

M0_BASSERT ( offsetof(struct _m0_gvertice_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [4/19]

M0_BASSERT ( sizeof(struct m0_graph = =144U)

◆ M0_BASSERT() [5/19]

M0_BASSERT ( sizeof((struct m0_graph *) 0) ->  g_anchor = =144U)

◆ M0_BASSERT() [6/19]

M0_BASSERT ( offsetof(struct m0_graph, g_anchor)  = =0U)

◆ M0_BASSERT() [7/19]

M0_BASSERT ( sizeof(struct m0_garc = =48U)

◆ M0_BASSERT() [8/19]

M0_BASSERT ( sizeof((struct m0_garc *) 0) ->  as_fid = =16U)

◆ M0_BASSERT() [9/19]

M0_BASSERT ( offsetof(struct m0_garc, as_fid)  = =0U)

◆ M0_BASSERT() [10/19]

M0_BASSERT ( offsetof(struct m0_garc, as_local)  = =16U)

◆ M0_BASSERT() [11/19]

M0_BASSERT ( offsetof(struct m0_garc, as_remote)  = =32U)

◆ M0_BASSERT() [12/19]

M0_BASSERT ( sizeof(struct m0_gvertice = =144U)

◆ M0_BASSERT() [13/19]

M0_BASSERT ( sizeof((struct m0_gvertice *) 0) ->  vh_typeid = =8U)

◆ M0_BASSERT() [14/19]

M0_BASSERT ( offsetof(struct m0_gvertice, vh_typeid)  = =0U)

◆ M0_BASSERT() [15/19]

M0_BASSERT ( offsetof(struct m0_gvertice, vh_fid)  = =8U)

◆ M0_BASSERT() [16/19]

M0_BASSERT ( offsetof(struct m0_gvertice, vh_gen)  = =24U)

◆ M0_BASSERT() [17/19]

M0_BASSERT ( offsetof(struct m0_gvertice, vh_cookie)  = =32U)

◆ M0_BASSERT() [18/19]

M0_BASSERT ( offsetof(struct m0_gvertice, vh_next)  = =48U)

◆ M0_BASSERT() [19/19]

M0_BASSERT ( offsetof(struct m0_gvertice, vh_prev)  = =96U)

◆ m0_xc_graph_graph_fini()

M0_INTERNAL void m0_xc_graph_graph_fini ( void  )

Definition at line 269 of file graph_xc.c.

◆ m0_xc_graph_graph_init()

M0_INTERNAL void m0_xc_graph_graph_init ( void  )

Definition at line 262 of file graph_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_garc_struct_init()

M0_INTERNAL void m0_xc_m0_garc_struct_init ( void  )

Definition at line 117 of file graph_xc.c.

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

◆ m0_xc_m0_graph_struct_init()

M0_INTERNAL void m0_xc_m0_graph_struct_init ( void  )

Definition at line 97 of file graph_xc.c.

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

◆ m0_xc_m0_gvertice_struct_init()

M0_INTERNAL void m0_xc_m0_gvertice_struct_init ( void  )

Definition at line 167 of file graph_xc.c.

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

Variable Documentation

◆ _m0_garc

struct _m0_garc_s _m0_garc
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_garc",
.xct_sizeof = sizeof (struct m0_garc),
.xct_nr = 3,
.xct_flags = 0,
}
}
Definition: graph.h:51

◆ _m0_graph

struct _m0_graph_s _m0_graph
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_graph",
.xct_sizeof = sizeof (struct m0_graph),
.xct_nr = 1,
.xct_flags = 0,
}
}
Definition: graph.h:66

◆ _m0_gvertice

struct _m0_gvertice_s _m0_gvertice
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_gvertice",
.xct_sizeof = sizeof (struct m0_gvertice),
.xct_nr = 6,
.xct_flags = 0,
}
}

◆ m0_garc_xc

struct m0_xcode_type * m0_garc_xc = &_m0_garc._type

Definition at line 11 of file graph_xc.c.

◆ m0_graph_xc

struct m0_xcode_type * m0_graph_xc = &_m0_graph._type

Definition at line 10 of file graph_xc.c.

◆ m0_gvertice_xc

struct m0_xcode_type * m0_gvertice_xc = &_m0_gvertice._type

Definition at line 12 of file graph_xc.c.