PmHeapDesc_s Struct Reference
List of all members.
Detailed Description
The following is a diagram of the heap descriptor at the head of the chunk:
* MSb LSb
* 7 6 5 4 3 2 1 0
* pchunk-> +-+-+-+-+-+-+-+-+
* | S[9:2] | S := Size of the chunk (2 LSbs dropped)
* +-+-+-----------+ F := Chunk free bit (not in use)
* |F|R| S[15:10] | R := Bit reserved for future use
* +-+-+-----------+
* | P(L) | P := hd_prev: Pointer to previous node
* | P(H) | N := hd_next: Pointer to next node
* | N(L) |
* | N(H) | Theoretical min size == 6
* +---------------+ Effective min size == 8
* | unused space | (12 on 32-bit MCUs)
* ... ...
* | end chunk |
* +---------------+
*
Definition at line 108 of file heap.c.
Member Data Documentation
Heap descriptor
Definition at line 111 of file heap.c.
Ptr to next heap chunk
Definition at line 117 of file heap.c.
Ptr to prev heap chunk
Definition at line 114 of file heap.c.
The documentation for this struct was generated from the following file: