|
psl1ght
A free SDK for Sony's PS3 console
|
Heap management functions. More...
#include <ppu-types.h>Go to the source code of this file.
Data Structures | |
| struct | _heap_block_t |
| struct | _heap_cntrl_t |
Macros | |
| #define | CPU_ALIGNMENT PPU_ALIGNMENT |
| #define | HEAP_BLOCK_PREV_USED ((uintptr_t) 1) |
| #define | HEAP_BLOCK_ALLOC_BONUS (sizeof(uintptr_t)) |
| #define | HEAP_BLOCK_HEADER_SIZE (2*sizeof(uintptr_t)) |
Typedefs | |
| typedef struct _heap_block_t | heap_block |
| typedef struct _heap_cntrl_t | heap_cntrl |
Functions | |
| struct _heap_block_t | __attribute__ ((packed)) |
| uintptr_t | heapInit (heap_cntrl *theheap, void *start_addr, uintptr_t size) |
| void * | heapAllocate (heap_cntrl *theheap, uintptr_t size) |
| void * | heapAllocateAligned (heap_cntrl *theheap, uintptr_t size, uintptr_t alignment) |
| bool | heapFree (heap_cntrl *theheap, void *ptr) |
Variables | |
| uintptr_t | prev_size |
| uintptr_t | size |
| heap_block * | next |
| heap_block * | prev |
| struct _heap_cntrl_t | __attribute__ |
Heap management functions.
Definition in file heap.h.
| typedef struct _heap_block_t heap_block |
| typedef struct _heap_cntrl_t heap_cntrl |
| struct _heap_block_t __attribute__ | ( | (packed) | ) |
| void * heapAllocate | ( | heap_cntrl * | theheap, |
| uintptr_t | size | ||
| ) |
| void * heapAllocateAligned | ( | heap_cntrl * | theheap, |
| uintptr_t | size, | ||
| uintptr_t | alignment | ||
| ) |
| bool heapFree | ( | heap_cntrl * | theheap, |
| void * | ptr | ||
| ) |
| uintptr_t heapInit | ( | heap_cntrl * | theheap, |
| void * | start_addr, | ||
| uintptr_t | size | ||
| ) |
| __attribute__ |
| heap_block* next |
| heap_block* prev |