Motr  M0
be_alloc_chunk Struct Reference

Allocator chunk. More...

#include <alloc_internal.h>

Collaboration diagram for be_alloc_chunk:
Collaboration graph

Public Member Functions

uint32_t bac_zone M0_XCA_FENUM (m0_be_alloc_zone_type)
 

Data Fields

uint64_t bac_magic0
 
struct m0_be_list_link bac_linkage
 
uint64_t bac_magic
 
struct m0_be_list_link bac_linkage_free
 
uint64_t bac_magic_free
 
m0_bcount_t bac_size
 
bool bac_free
 
uint64_t bac_magic1
 
char bac_mem [0]
 

Detailed Description

Allocator chunk.

  • resides in the allocator space;
  • located just before allocated memory block;
  • there is at least one chunk in the allocator.

Definition at line 50 of file alloc_internal.h.

Member Function Documentation

◆ M0_XCA_FENUM()

uint32_t bac_zone M0_XCA_FENUM ( m0_be_alloc_zone_type  )

Allocator zone where chunk resides.

Field Documentation

◆ bac_free

bool bac_free

is chunk free?

Definition at line 67 of file alloc_internal.h.

◆ bac_linkage

struct m0_be_list_link bac_linkage

for m0_be_allocator_header.bah_chunks list

Definition at line 57 of file alloc_internal.h.

◆ bac_linkage_free

struct m0_be_list_link bac_linkage_free

for m0_be_allocator_header.bah_fl list

Definition at line 61 of file alloc_internal.h.

◆ bac_magic

uint64_t bac_magic

magic for bac_linkage

Definition at line 59 of file alloc_internal.h.

◆ bac_magic0

uint64_t bac_magic0

M0_BE_ALLOC_MAGIC0 Used to find invalid memory access after allocated chunk.

Definition at line 55 of file alloc_internal.h.

◆ bac_magic1

uint64_t bac_magic1

M0_BE_ALLOC_MAGIC1 Used to find invalid memory access before allocated chunk.M0_BE_ALLOC_MAGIC1

Definition at line 75 of file alloc_internal.h.

◆ bac_magic_free

uint64_t bac_magic_free

magic for bac_linkage_free

Definition at line 63 of file alloc_internal.h.

◆ bac_mem

char bac_mem[0]

m0_be_alloc() and m0_be_alloc_aligned() will return address of bac_mem for allocated chunk.

Definition at line 80 of file alloc_internal.h.

◆ bac_size

m0_bcount_t bac_size

size of chunk

Definition at line 65 of file alloc_internal.h.


The documentation for this struct was generated from the following file: