KHeapChunkHeader

From 3dbrew
Revision as of 15:02, 26 September 2015 by Neobrain (talk | contribs) (There, feel free to document this in a better manner. At least it's documented at all now.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

People don't like typing, so they come up with ridiculous names like memchunkhdr to refer to memory chunk headers, i.e. headers describing chunks of memory allocated by the ARM11 kernel.

Here is some code describing the layout of a memory chunk header. TODO: If the reader happens to know anything about this barely documented topic, I hereby encourage them to clarify where this is actually used and how it ties into the rest of the kernel.

   struct MemoryChunkHeader {
       int count;
       void* next;
       void* prev;
       int unk1;
       int unk2;
   };

The "next" and "prev" members are used to implement a linked-list. In fact, chances are this is actually a kernel object inherited from KLinkedList.