Difference between revisions of "KHeapChunkHeader"

From 3dbrew
Jump to navigation Jump to search
m (moved Memchunkhdrletsusestupidabbreviations to Memchunkhdr: Let's just clean that up...)
(Redirected page to MemoryBlockHeader)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
memchunkhdr = a data structure describing chunks of memory allocated by the ARM11 kernel.
+
#REDIRECT [[MemoryBlockHeader]]
 
 
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 num_pages; // size of this chunk in terms of small pages
 
        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]].
 

Latest revision as of 06:02, 15 October 2015

Redirect to: