PSPSDK 2024-12-16
|
This module contains routines to manage heaps of memory. More...
Typedefs | |
typedef int | SceKernelSysMemAlloc_t |
Enumerations | |
enum | PspSysMemBlockTypes { PSP_SMEM_Low = 0 , PSP_SMEM_High , PSP_SMEM_Addr } |
Specifies the type of allocation used for memory blocks. More... | |
Functions | |
SceUID | sceKernelAllocPartitionMemory (SceUID partitionid, const char *name, int type, SceSize size, void *addr) |
Allocate a memory block from a memory partition. | |
int | sceKernelFreePartitionMemory (SceUID blockid) |
Free a memory block allocated with sceKernelAllocPartitionMemory. | |
void * | sceKernelGetBlockHeadAddr (SceUID blockid) |
Get the address of a memory block. | |
SceSize | sceKernelTotalFreeMemSize (void) |
Get the total amount of free memory. | |
SceSize | sceKernelMaxFreeMemSize (void) |
Get the size of the largest free memory block. | |
int | sceKernelDevkitVersion (void) |
Get the firmware version. | |
int | sceKernelSetCompiledSdkVersion (int version) |
Set the version of the SDK with which the caller was compiled. | |
int | sceKernelGetCompiledSdkVersion (void) |
Get the SDK version set with sceKernelSetCompiledSdkVersion(). | |
This module contains routines to manage heaps of memory.
SceUID sceKernelAllocPartitionMemory | ( | SceUID | partitionid, |
const char * | name, | ||
int | type, | ||
SceSize | size, | ||
void * | addr | ||
) |
Allocate a memory block from a memory partition.
partitionid | - The UID of the partition to allocate from. |
name | - Name assigned to the new block. |
type | - Specifies how the block is allocated within the partition. One of PspSysMemBlockTypes. |
size | - Size of the memory block, in bytes. |
addr | - If type is PSP_SMEM_Addr, then addr specifies the lowest address allocate the block from. |
Get the firmware version.
Free a memory block allocated with sceKernelAllocPartitionMemory.
blockid | - UID of the block to free. |
Get the address of a memory block.
blockid | - UID of the memory block. |
Get the SDK version set with sceKernelSetCompiledSdkVersion().
Get the size of the largest free memory block.
Set the version of the SDK with which the caller was compiled.
Version numbers are as for sceKernelDevkitVersion().