![]() |
Ultibo API
C/C++ API for Ultibo Core
|
Go to the source code of this file.
Data Structures | |
| struct | _HEAP_SNAPSHOT |
Macros | |
| #define | HEAP_MIN_BLOCK 33 |
| SizeOf(THeapBlock) + 1. | |
| #define | HEAP_MIN_ALIGN 64 |
| SizeOf(THeapBlock) * 2. | |
| #define | HEAP_SIGNATURE 0xE84DF600 |
| #define | HEAP_SIGNATURE_MASK 0xFFFFFF00 |
| #define | HEAP_STATE_FREE 0 |
| #define | HEAP_STATE_USED 1 |
| #define | HEAP_STATE_MASK 0x000000FF |
| #define | HEAP_STATE_ALL 2 |
| Only for use by GetHeapBlockCount/GetHeapBlockMin/GetHeapBlockMax. | |
| #define | HEAP_FLAG_NORMAL 0x00000000 |
| A normal memory block. | |
| #define | HEAP_FLAG_SHARED 0x00000001 |
| A sharable memory block, usually marked as sharable in the page tables of the memory management unit. | |
| #define | HEAP_FLAG_LOCAL 0x00000002 |
| A local memory block with an affinity to a specific processor, usually marked as non global in the page tables of the memory management unit. | |
| #define | HEAP_FLAG_CODE 0x00000004 |
| A code memory block (with an optional affinity to a specific processor), usually marked as executable in the page tables of the memory management unit. | |
| #define | HEAP_FLAG_DEVICE 0x00000008 |
| A device memory block, usually marked as device memory in the page tables of the memory management unit. | |
| #define | HEAP_FLAG_NOCACHE 0x00000010 |
| A non cached memory block, usually marked as not cacheable in the page tables of the memory management unit. | |
| #define | HEAP_FLAG_NONSHARED 0x00000020 |
| A non shared memory block, usually marked as not shareable in the page tables of the memory management unit. | |
| #define | HEAP_FLAG_LOCKED 0x00000040 |
| A locked memory block (Not currently implemented in Ultibo). | |
| #define | HEAP_FLAG_IRQ 0x00000080 |
| An IRQ allocatable memory block. | |
| #define | HEAP_FLAG_FIQ 0x00000100 |
| An FIQ allocatable memory block. | |
| #define | HEAP_FLAG_RECLAIM 0x00000200 |
| A reclaimable memory block (eg Disk Cache)(with a registered callback to reclaim as required for normal memory). | |
| #define | HEAP_FLAG_CUSTOM 0x08000000 |
| A custom flag reserved for non standard uses. | |
| #define | HEAP_FLAG_ALL 0xFFFFFFFF |
| Only for use by GetHeapBlockCount/GetHeapBlockMin/GetHeapBlockMax. | |
| #define | HEAP_FLAG_INVALID 0xFFFFFFFF |
| Return value from MemFlags/IRQ/FIQ on invalid. | |
| #define | HEAP_SMALL_MIN 32 |
| SizeOf(THeapBlock). | |
| #define | HEAP_SMALL_MAX SIZE_4K |
| Maximum size of a small heap block. | |
| #define | HEAP_SMALL_ALIGN 4 |
| SizeOf(LongWord);. | |
| #define | HEAP_SMALL_SHIFT 2 |
| Size to Index conversion (Divide by 4). | |
| #define | HEAP_SMALL_LOW (HEAP_SMALL_MIN / HEAP_SMALL_ALIGN) |
| 8 (32-bit) / 14 (64-bit) | |
| #define | HEAP_SMALL_HIGH (HEAP_SMALL_MAX / HEAP_SMALL_ALIGN) |
| 1024 | |
Typedefs | |
| typedef struct _HEAP_SNAPSHOT | HEAP_SNAPSHOT |
Functions | |
| void *STDCALL | get_mem (size_t size) |
| Allocate a block of normal memory. | |
| void *STDCALL | get_mem_ex (size_t size, uint32_t flags, uint32_t affinity) |
| Allocate a block of memory with the flags and affinity requested. | |
| void *STDCALL | get_aligned_mem (size_t size, size_t alignment) |
| Allocate a block of normal memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_aligned_mem_ex (size_t size, size_t alignment, uint32_t flags, uint32_t affinity) |
| Allocate a block of memory aligned on a multiple of the alignment value with the flags and affinity requested. | |
| void *STDCALL | get_shared_mem (size_t size) |
| Allocate a block of shared memory. | |
| void *STDCALL | get_shared_aligned_mem (size_t size, size_t alignment) |
| Allocate a block of shared memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_local_mem (size_t size, uint32_t affinity) |
| Allocate a block of local memory. | |
| void *STDCALL | get_local_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate a block of local memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_code_mem (size_t size, uint32_t affinity) |
| Allocate a block of code memory. | |
| void *STDCALL | get_code_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate a block of code memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_device_mem (size_t size) |
| Allocate a block of device memory. | |
| void *STDCALL | get_device_aligned_mem (size_t size, size_t alignment) |
| Allocate a block of device memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_nocache_mem (size_t size) |
| Allocate a block of non cached memory. | |
| void *STDCALL | get_nocache_aligned_mem (size_t size, size_t alignment) |
| Allocate a block of non cached memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_nonshared_mem (size_t size) |
| Allocate a block of non shared memory. | |
| void *STDCALL | get_nonshared_aligned_mem (size_t size, size_t alignment) |
| Allocate a block of non shared memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_irq_mem (size_t size, uint32_t affinity) |
| Allocate a block of IRQ memory. | |
| void *STDCALL | get_irq_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate a block of IRQ memory aligned on a multiple of the alignment value. | |
| void *STDCALL | get_fiq_mem (size_t size, uint32_t affinity) |
| Allocate a block of FIQ memory. | |
| void *STDCALL | get_fiq_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate a block of FIQ memory aligned on a multiple of the alignment value. | |
| size_t STDCALL | free_mem (void *addr) |
| Free a block of memory. | |
| size_t STDCALL | free_irq_mem (void *addr) |
| Free a block of IRQ memory. | |
| size_t STDCALL | free_fiq_mem (void *addr) |
| Free a block of FIQ memory. | |
| void *STDCALL | alloc_mem (size_t size) |
| Allocate and clear a block of normal memory. | |
| void *STDCALL | alloc_mem_ex (size_t size, uint32_t flags, uint32_t affinity) |
| Allocate and clear a block of memory with the flags and affinity requested. | |
| void *STDCALL | realloc_mem (void *addr, size_t size) |
| Reallocate a block of normal memory. | |
| void *STDCALL | realloc_mem_ex (void *addr, size_t size, uint32_t flags, uint32_t affinity) |
| Reallocate a block of memory with the flags and affinity requested. | |
| void *STDCALL | alloc_aligned_mem (size_t size, size_t alignment) |
| Allocate and clear a block of normal memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_aligned_mem_ex (size_t size, size_t alignment, uint32_t flags, uint32_t affinity) |
| Allocate and clear a block of normal memory aligned on a multiple of the alignment value with the flags and affinity requested. | |
| void *STDCALL | realloc_aligned_mem (void *addr, size_t size, size_t alignment) |
| Reallocate a block of normal memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_aligned_mem_ex (void *addr, size_t size, size_t alignment, uint32_t flags, uint32_t affinity) |
| Reallocate a block of memory aligned on a multiple of the alignment value with the flags and affinity requested. | |
| void *STDCALL | alloc_shared_mem (size_t size) |
| Allocate and clear a block of shared memory. | |
| void *STDCALL | alloc_shared_aligned_mem (size_t size, size_t alignment) |
| Allocate and clear a block of shared memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_shared_mem (void *addr, size_t size) |
| Reallocate a block of shared memory. | |
| void *STDCALL | realloc_shared_aligned_mem (void *addr, size_t size, size_t alignment) |
| Reallocate a block of shared memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_local_mem (size_t size, uint32_t affinity) |
| Allocate and clear a block of local memory. | |
| void *STDCALL | alloc_local_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate and clear a block of local memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_local_mem (void *addr, size_t size, uint32_t affinity) |
| Reallocate a block of local memory. | |
| void *STDCALL | realloc_local_aligned_mem (void *addr, size_t size, size_t alignment, uint32_t affinity) |
| Reallocate a block of local memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_code_mem (size_t size, uint32_t affinity) |
| Allocate and clear a block of code memory. | |
| void *STDCALL | alloc_code_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate and clear a block of code memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_code_mem (void *addr, size_t size, uint32_t affinity) |
| Reallocate a block of code memory. | |
| void *STDCALL | realloc_code_aligned_mem (void *addr, size_t size, size_t alignment, uint32_t affinity) |
| Reallocate a block of code memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_device_mem (size_t size) |
| Allocate and clear a block of device memory. | |
| void *STDCALL | alloc_device_aligned_mem (size_t size, size_t alignment) |
| Allocate and clear a block of device memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_device_mem (void *addr, size_t size) |
| Reallocate a block of device memory. | |
| void *STDCALL | realloc_device_aligned_mem (void *addr, size_t size, size_t alignment) |
| Reallocate a block of device memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_nocache_mem (size_t size) |
| Allocate and clear a block of non cached memory. | |
| void *STDCALL | alloc_nocache_aligned_mem (size_t size, size_t alignment) |
| Allocate and clear a block of non cached memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_nocache_mem (void *addr, size_t size) |
| Reallocate a block of non cached memory. | |
| void *STDCALL | realloc_nocache_aligned_mem (void *addr, size_t size, size_t alignment) |
| Reallocate a block of non cached memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_nonshared_mem (size_t size) |
| Allocate and clear a block of non shared memory. | |
| void *STDCALL | alloc_nonshared_aligned_mem (size_t size, size_t alignment) |
| Allocate and clear a block of non shared memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_nonshared_mem (void *addr, size_t size) |
| Reallocate a block of non shared memory. | |
| void *STDCALL | realloc_nonshared_aligned_mem (void *addr, size_t size, size_t alignment) |
| Reallocate a block of non shared memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_irq_mem (size_t size, uint32_t affinity) |
| Allocate and clear a block of IRQ memory. | |
| void *STDCALL | alloc_irq_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate and clear a block of IRQ memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_irq_mem (void *addr, size_t size, uint32_t affinity) |
| Reallocate a block of IRQ memory. | |
| void *STDCALL | realloc_irq_aligned_mem (void *addr, size_t size, size_t alignment, uint32_t affinity) |
| Reallocate a block of IRQ memory aligned on a multiple of the alignment value. | |
| void *STDCALL | alloc_fiq_mem (size_t size, uint32_t affinity) |
| Allocate and clear a block of FIQ memory. | |
| void *STDCALL | alloc_fiq_aligned_mem (size_t size, size_t alignment, uint32_t affinity) |
| Allocate and clear a block of FIQ memory aligned on a multiple of the alignment value. | |
| void *STDCALL | realloc_fiq_mem (void *addr, size_t size, uint32_t affinity) |
| Reallocate a block of FIQ memory. | |
| void *STDCALL | realloc_fiq_aligned_mem (void *addr, size_t size, size_t alignment, uint32_t affinity) |
| Reallocate a block of FIQ memory aligned on a multiple of the alignment value. | |
| size_t STDCALL | size_mem (void *addr) |
| Return the size of an allocated block of memory. | |
| size_t STDCALL | size_irq_mem (void *addr) |
| Return the size of an allocated block of IRQ memory. | |
| size_t STDCALL | size_fiq_mem (void *addr) |
| Return the size of an allocated block of FIQ memory. | |
| uint32_t STDCALL | mem_flags (void *addr) |
| Return the flags of an allocated block of memory. | |
| uint32_t STDCALL | mem_flags_irq (void *addr) |
| Return the flags of an allocated block of IRQ memory. | |
| uint32_t STDCALL | mem_flags_fiq (void *addr) |
| Return the flags of an allocated block of FIQ memory. | |
| HEAP_STATUS STDCALL | get_heap_status (void) |
| Return status information for the heap manager. | |
| FPC_HEAP_STATUS STDCALL | get_fpc_heap_status (void) |
| Return status information for the heap manager. | |
| uint32_t STDCALL | get_heap_block_count (uint32_t state) |
| Get the total number of current heap blocks based on state. | |
| uint32_t STDCALL | get_heap_block_count_ex (uint32_t state, uint32_t flags, uint32_t affinity) |
| Get the number of current heap blocks based on state, flags and affinity. | |
| uint32_t STDCALL | get_heap_block_min (uint32_t state) |
| Get the minimum size of current heap blocks based on state. | |
| uint32_t STDCALL | get_heap_block_min_ex (uint32_t state, uint32_t flags, uint32_t affinity) |
| Get the minimum size of current heap blocks based on state, flags and affinity. | |
| uint32_t STDCALL | get_heap_block_max (uint32_t state) |
| Get the maximum size of current heap blocks based on state. | |
| uint32_t STDCALL | get_heap_block_max_ex (uint32_t state, uint32_t flags, uint32_t affinity) |
| Get the maximum size of current heap blocks based on state, flags and affinity. | |
| HEAP_SNAPSHOT *STDCALL | create_heap_snapshot (uint32_t state) |
| HEAP_SNAPSHOT *STDCALL | create_heap_snapshot_ex (uint32_t state, uint32_t flags, uint32_t affinity) |
| uint32_t STDCALL | destroy_heap_snapshot (HEAP_SNAPSHOT *snapshot) |
| #define HEAP_MIN_BLOCK 33 |
SizeOf(THeapBlock) + 1.
Note: Memory allocated using these functions must not be freed using free() or heap corruption may occur. Allocations obtained from these functions must be freed with free_mem(), free_irq_mem() or free_fiq_mem() only Heap specific constants
| #define HEAP_MIN_ALIGN 64 |
SizeOf(THeapBlock) * 2.
| #define HEAP_SIGNATURE 0xE84DF600 |
Heap Signature
| #define HEAP_SIGNATURE_MASK 0xFFFFFF00 |
| #define HEAP_STATE_FREE 0 |
Heap Block States
| #define HEAP_STATE_USED 1 |
| #define HEAP_STATE_MASK 0x000000FF |
| #define HEAP_STATE_ALL 2 |
Only for use by GetHeapBlockCount/GetHeapBlockMin/GetHeapBlockMax.
| #define HEAP_FLAG_NORMAL 0x00000000 |
A normal memory block.
Heap Block Flags
| #define HEAP_FLAG_SHARED 0x00000001 |
A sharable memory block, usually marked as sharable in the page tables of the memory management unit.
| #define HEAP_FLAG_LOCAL 0x00000002 |
A local memory block with an affinity to a specific processor, usually marked as non global in the page tables of the memory management unit.
| #define HEAP_FLAG_CODE 0x00000004 |
A code memory block (with an optional affinity to a specific processor), usually marked as executable in the page tables of the memory management unit.
| #define HEAP_FLAG_DEVICE 0x00000008 |
A device memory block, usually marked as device memory in the page tables of the memory management unit.
| #define HEAP_FLAG_NOCACHE 0x00000010 |
A non cached memory block, usually marked as not cacheable in the page tables of the memory management unit.
| #define HEAP_FLAG_NONSHARED 0x00000020 |
A non shared memory block, usually marked as not shareable in the page tables of the memory management unit.
| #define HEAP_FLAG_LOCKED 0x00000040 |
A locked memory block (Not currently implemented in Ultibo).
| #define HEAP_FLAG_IRQ 0x00000080 |
An IRQ allocatable memory block.
| #define HEAP_FLAG_FIQ 0x00000100 |
An FIQ allocatable memory block.
| #define HEAP_FLAG_RECLAIM 0x00000200 |
A reclaimable memory block (eg Disk Cache)(with a registered callback to reclaim as required for normal memory).
| #define HEAP_FLAG_CUSTOM 0x08000000 |
A custom flag reserved for non standard uses.
| #define HEAP_FLAG_ALL 0xFFFFFFFF |
Only for use by GetHeapBlockCount/GetHeapBlockMin/GetHeapBlockMax.
| #define HEAP_FLAG_INVALID 0xFFFFFFFF |
Return value from MemFlags/IRQ/FIQ on invalid.
| #define HEAP_SMALL_MIN 32 |
SizeOf(THeapBlock).
Heap Small Blocks
| #define HEAP_SMALL_MAX SIZE_4K |
Maximum size of a small heap block.
| #define HEAP_SMALL_ALIGN 4 |
SizeOf(LongWord);.
| #define HEAP_SMALL_SHIFT 2 |
Size to Index conversion (Divide by 4).
| #define HEAP_SMALL_LOW (HEAP_SMALL_MIN / HEAP_SMALL_ALIGN) |
8 (32-bit) / 14 (64-bit)
| #define HEAP_SMALL_HIGH (HEAP_SMALL_MAX / HEAP_SMALL_ALIGN) |
1024
| typedef struct _HEAP_SNAPSHOT HEAP_SNAPSHOT |
Heap specific types
| void *STDCALL get_mem | ( | size_t | size | ) |
Allocate a block of normal memory.
Heap Functions
| void *STDCALL get_mem_ex | ( | size_t | size, |
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Allocate a block of memory with the flags and affinity requested.
| void *STDCALL get_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate a block of normal memory aligned on a multiple of the alignment value.
| void *STDCALL get_aligned_mem_ex | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Allocate a block of memory aligned on a multiple of the alignment value with the flags and affinity requested.
| void *STDCALL get_shared_mem | ( | size_t | size | ) |
Allocate a block of shared memory.
| void *STDCALL get_shared_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate a block of shared memory aligned on a multiple of the alignment value.
| void *STDCALL get_local_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate a block of local memory.
| void *STDCALL get_local_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate a block of local memory aligned on a multiple of the alignment value.
| void *STDCALL get_code_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate a block of code memory.
| void *STDCALL get_code_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate a block of code memory aligned on a multiple of the alignment value.
| void *STDCALL get_device_mem | ( | size_t | size | ) |
Allocate a block of device memory.
| void *STDCALL get_device_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate a block of device memory aligned on a multiple of the alignment value.
| void *STDCALL get_nocache_mem | ( | size_t | size | ) |
Allocate a block of non cached memory.
| void *STDCALL get_nocache_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate a block of non cached memory aligned on a multiple of the alignment value.
| void *STDCALL get_nonshared_mem | ( | size_t | size | ) |
Allocate a block of non shared memory.
| void *STDCALL get_nonshared_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate a block of non shared memory aligned on a multiple of the alignment value.
| void *STDCALL get_irq_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate a block of IRQ memory.
| void *STDCALL get_irq_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate a block of IRQ memory aligned on a multiple of the alignment value.
| void *STDCALL get_fiq_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate a block of FIQ memory.
| void *STDCALL get_fiq_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate a block of FIQ memory aligned on a multiple of the alignment value.
| size_t STDCALL free_mem | ( | void * | addr | ) |
Free a block of memory.
| size_t STDCALL free_irq_mem | ( | void * | addr | ) |
Free a block of IRQ memory.
| size_t STDCALL free_fiq_mem | ( | void * | addr | ) |
Free a block of FIQ memory.
| void *STDCALL alloc_mem | ( | size_t | size | ) |
Allocate and clear a block of normal memory.
| void *STDCALL alloc_mem_ex | ( | size_t | size, |
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Allocate and clear a block of memory with the flags and affinity requested.
| void *STDCALL realloc_mem | ( | void * | addr, |
| size_t | size ) |
Reallocate a block of normal memory.
| void *STDCALL realloc_mem_ex | ( | void * | addr, |
| size_t | size, | ||
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Reallocate a block of memory with the flags and affinity requested.
| void *STDCALL alloc_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate and clear a block of normal memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_aligned_mem_ex | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Allocate and clear a block of normal memory aligned on a multiple of the alignment value with the flags and affinity requested.
| void *STDCALL realloc_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment ) |
Reallocate a block of normal memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_aligned_mem_ex | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment, | ||
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Reallocate a block of memory aligned on a multiple of the alignment value with the flags and affinity requested.
| void *STDCALL alloc_shared_mem | ( | size_t | size | ) |
Allocate and clear a block of shared memory.
| void *STDCALL alloc_shared_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate and clear a block of shared memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_shared_mem | ( | void * | addr, |
| size_t | size ) |
Reallocate a block of shared memory.
| void *STDCALL realloc_shared_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment ) |
Reallocate a block of shared memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_local_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate and clear a block of local memory.
| void *STDCALL alloc_local_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate and clear a block of local memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_local_mem | ( | void * | addr, |
| size_t | size, | ||
| uint32_t | affinity ) |
Reallocate a block of local memory.
| void *STDCALL realloc_local_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment, | ||
| uint32_t | affinity ) |
Reallocate a block of local memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_code_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate and clear a block of code memory.
| void *STDCALL alloc_code_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate and clear a block of code memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_code_mem | ( | void * | addr, |
| size_t | size, | ||
| uint32_t | affinity ) |
Reallocate a block of code memory.
| void *STDCALL realloc_code_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment, | ||
| uint32_t | affinity ) |
Reallocate a block of code memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_device_mem | ( | size_t | size | ) |
Allocate and clear a block of device memory.
| void *STDCALL alloc_device_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate and clear a block of device memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_device_mem | ( | void * | addr, |
| size_t | size ) |
Reallocate a block of device memory.
| void *STDCALL realloc_device_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment ) |
Reallocate a block of device memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_nocache_mem | ( | size_t | size | ) |
Allocate and clear a block of non cached memory.
| void *STDCALL alloc_nocache_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate and clear a block of non cached memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_nocache_mem | ( | void * | addr, |
| size_t | size ) |
Reallocate a block of non cached memory.
| void *STDCALL realloc_nocache_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment ) |
Reallocate a block of non cached memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_nonshared_mem | ( | size_t | size | ) |
Allocate and clear a block of non shared memory.
| void *STDCALL alloc_nonshared_aligned_mem | ( | size_t | size, |
| size_t | alignment ) |
Allocate and clear a block of non shared memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_nonshared_mem | ( | void * | addr, |
| size_t | size ) |
Reallocate a block of non shared memory.
| void *STDCALL realloc_nonshared_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment ) |
Reallocate a block of non shared memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_irq_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate and clear a block of IRQ memory.
| void *STDCALL alloc_irq_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate and clear a block of IRQ memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_irq_mem | ( | void * | addr, |
| size_t | size, | ||
| uint32_t | affinity ) |
Reallocate a block of IRQ memory.
| void *STDCALL realloc_irq_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment, | ||
| uint32_t | affinity ) |
Reallocate a block of IRQ memory aligned on a multiple of the alignment value.
| void *STDCALL alloc_fiq_mem | ( | size_t | size, |
| uint32_t | affinity ) |
Allocate and clear a block of FIQ memory.
| void *STDCALL alloc_fiq_aligned_mem | ( | size_t | size, |
| size_t | alignment, | ||
| uint32_t | affinity ) |
Allocate and clear a block of FIQ memory aligned on a multiple of the alignment value.
| void *STDCALL realloc_fiq_mem | ( | void * | addr, |
| size_t | size, | ||
| uint32_t | affinity ) |
Reallocate a block of FIQ memory.
| void *STDCALL realloc_fiq_aligned_mem | ( | void * | addr, |
| size_t | size, | ||
| size_t | alignment, | ||
| uint32_t | affinity ) |
Reallocate a block of FIQ memory aligned on a multiple of the alignment value.
| size_t STDCALL size_mem | ( | void * | addr | ) |
Return the size of an allocated block of memory.
| size_t STDCALL size_irq_mem | ( | void * | addr | ) |
Return the size of an allocated block of IRQ memory.
| size_t STDCALL size_fiq_mem | ( | void * | addr | ) |
Return the size of an allocated block of FIQ memory.
| uint32_t STDCALL mem_flags | ( | void * | addr | ) |
Return the flags of an allocated block of memory.
| uint32_t STDCALL mem_flags_irq | ( | void * | addr | ) |
Return the flags of an allocated block of IRQ memory.
| uint32_t STDCALL mem_flags_fiq | ( | void * | addr | ) |
Return the flags of an allocated block of FIQ memory.
| HEAP_STATUS STDCALL get_heap_status | ( | void | ) |
Return status information for the heap manager.
| FPC_HEAP_STATUS STDCALL get_fpc_heap_status | ( | void | ) |
Return status information for the heap manager.
| uint32_t STDCALL get_heap_block_count | ( | uint32_t | state | ) |
Get the total number of current heap blocks based on state.
| uint32_t STDCALL get_heap_block_count_ex | ( | uint32_t | state, |
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Get the number of current heap blocks based on state, flags and affinity.
| uint32_t STDCALL get_heap_block_min | ( | uint32_t | state | ) |
Get the minimum size of current heap blocks based on state.
| uint32_t STDCALL get_heap_block_min_ex | ( | uint32_t | state, |
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Get the minimum size of current heap blocks based on state, flags and affinity.
| uint32_t STDCALL get_heap_block_max | ( | uint32_t | state | ) |
Get the maximum size of current heap blocks based on state.
| uint32_t STDCALL get_heap_block_max_ex | ( | uint32_t | state, |
| uint32_t | flags, | ||
| uint32_t | affinity ) |
Get the maximum size of current heap blocks based on state, flags and affinity.
| HEAP_SNAPSHOT *STDCALL create_heap_snapshot | ( | uint32_t | state | ) |
| HEAP_SNAPSHOT *STDCALL create_heap_snapshot_ex | ( | uint32_t | state, |
| uint32_t | flags, | ||
| uint32_t | affinity ) |
| uint32_t STDCALL destroy_heap_snapshot | ( | HEAP_SNAPSHOT * | snapshot | ) |