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

Go to the source code of this file.

Data Structures

struct  _m0_be_allocator_header_s
 
struct  _be_alloc_chunk_s
 
struct  _m0_be_alloc_zone_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_be_allocator_header_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _be_alloc_chunk_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_alloc_zone_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_be_allocator_header)==7512U)
 
 M0_BASSERT (sizeof((struct m0_be_allocator_header *) 0) ->bah_chunks==56U)
 
 M0_BASSERT (offsetof(struct m0_be_allocator_header, bah_chunks)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_allocator_header, bah_fl)==56U)
 
 M0_BASSERT (offsetof(struct m0_be_allocator_header, bah_stats)==7280U)
 
 M0_BASSERT (offsetof(struct m0_be_allocator_header, bah_size)==7496U)
 
 M0_BASSERT (offsetof(struct m0_be_allocator_header, bah_addr)==7504U)
 
 M0_BASSERT (sizeof(struct be_alloc_chunk)==80U)
 
 M0_BASSERT (sizeof((struct be_alloc_chunk *) 0) ->bac_magic0==8U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_magic0)==0U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_linkage)==8U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_magic)==24U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_linkage_free)==32U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_magic_free)==48U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_size)==56U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_free)==64U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_zone)==68U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_magic1)==72U)
 
 M0_BASSERT (offsetof(struct be_alloc_chunk, bac_mem)==80U)
 
 M0_BASSERT (sizeof(struct m0_be_alloc_zone)==16U)
 
 M0_BASSERT (sizeof((struct m0_be_alloc_zone *) 0) ->baz_size==8U)
 
 M0_BASSERT (offsetof(struct m0_be_alloc_zone, baz_size)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_alloc_zone, baz_free)==8U)
 
M0_INTERNAL void m0_xc_m0_be_allocator_header_struct_init (void)
 
M0_INTERNAL void m0_xc_be_alloc_chunk_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_alloc_zone_struct_init (void)
 
M0_INTERNAL void m0_xc_be_alloc_internal_init (void)
 
M0_INTERNAL void m0_xc_be_alloc_internal_fini (void)
 

Variables

struct m0_xcode_typem0_be_allocator_header_xc = &_m0_be_allocator_header._type
 
struct m0_xcode_typebe_alloc_chunk_xc = &_be_alloc_chunk._type
 
struct m0_xcode_typem0_be_alloc_zone_xc = &_m0_be_alloc_zone._type
 
static struct _m0_be_allocator_header_s _m0_be_allocator_header
 
static struct _be_alloc_chunk_s _be_alloc_chunk
 
static struct _m0_be_alloc_zone_s _m0_be_alloc_zone
 

Function Documentation

◆ M0_BASSERT() [1/26]

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

◆ M0_BASSERT() [2/26]

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

◆ M0_BASSERT() [3/26]

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

◆ M0_BASSERT() [4/26]

M0_BASSERT ( sizeof(struct m0_be_allocator_header = =7512U)

◆ M0_BASSERT() [5/26]

M0_BASSERT ( sizeof((struct m0_be_allocator_header *) 0) ->  bah_chunks = =56U)

◆ M0_BASSERT() [6/26]

M0_BASSERT ( offsetof(struct m0_be_allocator_header, bah_chunks = =0U)

◆ M0_BASSERT() [7/26]

M0_BASSERT ( offsetof(struct m0_be_allocator_header, bah_fl = =56U)

◆ M0_BASSERT() [8/26]

M0_BASSERT ( offsetof(struct m0_be_allocator_header, bah_stats = =7280U)

◆ M0_BASSERT() [9/26]

M0_BASSERT ( offsetof(struct m0_be_allocator_header, bah_size = =7496U)

◆ M0_BASSERT() [10/26]

M0_BASSERT ( offsetof(struct m0_be_allocator_header, bah_addr = =7504U)

◆ M0_BASSERT() [11/26]

M0_BASSERT ( sizeof(struct be_alloc_chunk = =80U)

◆ M0_BASSERT() [12/26]

M0_BASSERT ( sizeof((struct be_alloc_chunk *) 0) ->  bac_magic0 = =8U)

◆ M0_BASSERT() [13/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_magic0 = =0U)

◆ M0_BASSERT() [14/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_linkage = =8U)

◆ M0_BASSERT() [15/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_magic = =24U)

◆ M0_BASSERT() [16/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_linkage_free = =32U)

◆ M0_BASSERT() [17/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_magic_free = =48U)

◆ M0_BASSERT() [18/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_size = =56U)

◆ M0_BASSERT() [19/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_free = =64U)

◆ M0_BASSERT() [20/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_zone)  = =68U)

◆ M0_BASSERT() [21/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_magic1 = =72U)

◆ M0_BASSERT() [22/26]

M0_BASSERT ( offsetof(struct be_alloc_chunk, bac_mem = =80U)

◆ M0_BASSERT() [23/26]

M0_BASSERT ( sizeof(struct m0_be_alloc_zone = =16U)

◆ M0_BASSERT() [24/26]

M0_BASSERT ( sizeof((struct m0_be_alloc_zone *) 0) ->  baz_size = =8U)

◆ M0_BASSERT() [25/26]

M0_BASSERT ( offsetof(struct m0_be_alloc_zone, baz_size = =0U)

◆ M0_BASSERT() [26/26]

M0_BASSERT ( offsetof(struct m0_be_alloc_zone, baz_free = =8U)

◆ m0_xc_be_alloc_chunk_struct_init()

M0_INTERNAL void m0_xc_be_alloc_chunk_struct_init ( void  )

Definition at line 261 of file alloc_internal_xc.c.

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

◆ m0_xc_be_alloc_internal_fini()

M0_INTERNAL void m0_xc_be_alloc_internal_fini ( void  )

Definition at line 477 of file alloc_internal_xc.c.

◆ m0_xc_be_alloc_internal_init()

M0_INTERNAL void m0_xc_be_alloc_internal_init ( void  )

Definition at line 464 of file alloc_internal_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_be_alloc_zone_struct_init()

M0_INTERNAL void m0_xc_m0_be_alloc_zone_struct_init ( void  )

Definition at line 428 of file alloc_internal_xc.c.

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

◆ m0_xc_m0_be_allocator_header_struct_init()

M0_INTERNAL void m0_xc_m0_be_allocator_header_struct_init ( void  )

Definition at line 164 of file alloc_internal_xc.c.

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

Variable Documentation

◆ _be_alloc_chunk

struct _be_alloc_chunk_s _be_alloc_chunk
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "be_alloc_chunk",
.xct_sizeof = sizeof (struct be_alloc_chunk),
.xct_nr = 10,
}
}
Allocator chunk.

◆ _m0_be_alloc_zone

struct _m0_be_alloc_zone_s _m0_be_alloc_zone
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_alloc_zone",
.xct_sizeof = sizeof (struct m0_be_alloc_zone),
.xct_nr = 2,
}
}
Allocator memory zone.

◆ _m0_be_allocator_header

struct _m0_be_allocator_header_s _m0_be_allocator_header
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_allocator_header",
.xct_sizeof = sizeof (struct m0_be_allocator_header),
.xct_nr = 5,
}
}
Allocator header.

◆ be_alloc_chunk_xc

struct m0_xcode_type * be_alloc_chunk_xc = &_be_alloc_chunk._type

Definition at line 14 of file alloc_internal_xc.c.

◆ m0_be_alloc_zone_xc

struct m0_xcode_type * m0_be_alloc_zone_xc = &_m0_be_alloc_zone._type

Definition at line 17 of file alloc_internal_xc.c.

◆ m0_be_allocator_header_xc

struct m0_xcode_type * m0_be_allocator_header_xc = &_m0_be_allocator_header._type

Definition at line 11 of file alloc_internal_xc.c.