The Pedigree Project  0.1
Public Attributes | List of all members
mem Struct Reference
+ Collaboration diagram for mem:

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 aligns.

Definition at line 283 of file mem.c.

Member Data Documentation

mem_size_t mem::next

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

Definition at line 285 of file mem.c.

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

mem_size_t mem::prev

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

Definition at line 287 of file mem.c.

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

u8_t mem::used

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

Definition at line 289 of file mem.c.

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


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