MeterLogger
Data Fields
mem Struct Reference
Collaboration diagram for mem:

Data Fields

mem_size_t next
 
mem_size_t prev
 
u8_t used
 
u8_t pad [3]
 

Detailed Description

The heap is made up as a list of structs of this type. This does not have to be aligned since for getting its size, we only use the macro SIZEOF_STRUCT_MEM, which automatically alignes.

Definition at line 155 of file mem.c.

Field Documentation

◆ next

mem_size_t mem::next

index (-> ram[next]) of the next struct

Definition at line 157 of file mem.c.

Referenced by mem_free(), mem_init(), mem_malloc(), mem_trim(), and plug_holes().

◆ pad

u8_t mem::pad[3]

Definition at line 162 of file mem.c.

◆ prev

mem_size_t mem::prev

index (-> ram[prev]) of the previous struct

Definition at line 159 of file mem.c.

Referenced by mem_init(), mem_malloc(), mem_trim(), and plug_holes().

◆ used

u8_t mem::used

1: this area is used; 0: this area is unused

Definition at line 161 of file mem.c.

Referenced by mem_free(), mem_init(), mem_malloc(), mem_trim(), and plug_holes().


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