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. |
typedef int SceKernelSysMemAlloc_t |
enum PspSysMemBlockTypes |
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. |
int sceKernelDevkitVersion | ( | void | ) |
Get the firmware version.
int sceKernelFreePartitionMemory | ( | SceUID | blockid | ) |
Free a memory block allocated with sceKernelAllocPartitionMemory.
blockid | - UID of the block to free. |
void* sceKernelGetBlockHeadAddr | ( | SceUID | blockid | ) |
Get the address of a memory block.
blockid | - UID of the memory block. |
SceSize sceKernelMaxFreeMemSize | ( | void | ) |
Get the size of the largest free memory block.
SceSize sceKernelTotalFreeMemSize | ( | void | ) |
Get the total amount of free memory.