ReactOS  0.4.14-dev-583-g2a1ba2c
mem Struct Reference

Public Attributes

mem_size_t next
 
mem_size_t prev
 
u8_t used
 

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 156 of file mem.c.

Member Data Documentation

◆ next

mem_size_t mem::next

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

Definition at line 158 of file mem.c.

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

◆ prev

mem_size_t mem::prev

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

Definition at line 160 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 162 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: