|
PSPSDK 2026-01-13
|
This module contains routines to manage heaps of memory. More...
Data Structures | |
| struct | _PspSysmemPartitionInfo |
| struct | SceGameInfo |
| struct | _uidControlBlock |
| Structure of a UID control block. More... | |
Typedefs | |
| typedef struct _PspSysmemPartitionInfo | PspSysmemPartitionInfo |
| typedef struct SceGameInfo | SceGameInfo |
| typedef struct _uidControlBlock | SceUidControlBlock |
| typedef struct _uidControlBlock | uidControlBlock |
Functions | |
| int | sceKernelQueryMemoryPartitionInfo (int pid, PspSysmemPartitionInfo *info) |
| Query the parition information. | |
| SceSize | sceKernelPartitionTotalFreeMemSize (int pid) |
| Get the total amount of free memory. | |
| SceSize | sceKernelPartitionMaxFreeMemSize (int pid) |
| Get the size of the largest free memory block. | |
| void | sceKernelSysMemDump (void) |
| Get the kernel to dump the internal memory table to Kprintf. | |
| void | sceKernelSysMemDumpBlock (void) |
| Dump the list of memory blocks. | |
| void | sceKernelSysMemDumpTail (void) |
| Dump the tail blocks. | |
| int | sceKernelSetDdrMemoryProtection (void *addr, int size, int prot) |
| Set the protection of a block of ddr memory. | |
| SceUID | sceKernelCreateHeap (SceUID partitionid, SceSize size, int unk, const char *name) |
| Create a heap. | |
| void * | sceKernelAllocHeapMemory (SceUID heapid, SceSize size) |
| Allocate a memory block from a heap. | |
| int | sceKernelFreeHeapMemory (SceUID heapid, void *block) |
| Free a memory block allocated from a heap. | |
| int | sceKernelDeleteHeap (SceUID heapid) |
| Delete a heap. | |
| SceSize | sceKernelHeapTotalFreeSize (SceUID heapid) |
| Get the amount of free size of a heap, in bytes. | |
| int | sceKernelGetSceUidControlBlock (SceUID uid, SceUidControlBlock **block) |
| Get a UID control block. | |
| int | sceKernelGetSceUidControlBlockWithType (SceUID uid, SceUidControlBlock *type, SceUidControlBlock **block) |
| Get a UID control block on a particular type. | |
| SceUidControlBlock * | SysMemForKernel_536AD5E1 (void) |
| Get the root of the UID tree (1.5+ only) | |
| int | sceKernelDeleteUID (SceUID uid) |
| Delete a UID. | |
| int | sceKernelGetModel (void) |
| Get the model of PSP. | |
| 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(). | |
| SceGameInfo * | sceKernelGetGameInfo () |
| Gets the information of the game. | |
| int | sceKernelGetSystemStatus () |
| Gets the current status of the system. | |
| int | sceKernelGetUIDcontrolBlock (SceUID uid, SceUidControlBlock **block) |
| Get a UID control block. | |
This module contains routines to manage heaps of memory.
| typedef struct _PspSysmemPartitionInfo PspSysmemPartitionInfo |
| typedef struct SceGameInfo SceGameInfo |
| typedef struct _uidControlBlock SceUidControlBlock |
| typedef struct _uidControlBlock uidControlBlock |
Allocate a memory block from a heap.
| heapid | - The UID of the heap to allocate from. |
| size | - The number of bytes to allocate. |
Create a heap.
| partitionid | - The UID of the partition where allocate the heap. |
| size | - The size in bytes of the heap. |
| unk | - Unknown, probably some flag or type, pass 1. |
| name | - Name assigned to the new heap. |
| int sceKernelDeleteHeap | ( | SceUID | heapid | ) |
Delete a heap.
| heapid | - The UID of the heap to delete. |
| int sceKernelDeleteUID | ( | SceUID | uid | ) |
Delete a UID.
| uid | - The UID to delete |
| int sceKernelFreeHeapMemory | ( | SceUID | heapid, |
| void * | block ) |
Free a memory block allocated from a heap.
| heapid | - The UID of the heap where block belongs. |
| block | - The block of memory to free from the heap. |
| int sceKernelGetCompiledSdkVersion | ( | void | ) |
Get the SDK version set with sceKernelSetCompiledSdkVersion().
| SceGameInfo * sceKernelGetGameInfo | ( | ) |
Gets the information of the game.
(2.00+ ?)
pspsysmem_kernel stub. | int sceKernelGetModel | ( | void | ) |
Get the model of PSP.
| int sceKernelGetSceUidControlBlock | ( | SceUID | uid, |
| SceUidControlBlock ** | block ) |
Get a UID control block.
| uid | - The UID to find |
| block | - Pointer to hold the pointer to the block |
| int sceKernelGetSceUidControlBlockWithType | ( | SceUID | uid, |
| SceUidControlBlock * | type, | ||
| SceUidControlBlock ** | block ) |
Get a UID control block on a particular type.
| uid | - The UID to find |
| type | - Pointer to the type UID block |
| block | - Pointer to hold the pointer to the block |
| int sceKernelGetSystemStatus | ( | ) |
Gets the current status of the system.
pspsysmem_kernel stub. | int sceKernelGetUIDcontrolBlock | ( | SceUID | uid, |
| SceUidControlBlock ** | block ) |
Get a UID control block.
| uid | - The UID to find |
| block | - Pointer to hold the pointer to the block |
pspsysmem_kernel stub. Get the amount of free size of a heap, in bytes.
| heapid | - The UID of the heap |
| SceSize sceKernelPartitionMaxFreeMemSize | ( | int | pid | ) |
Get the size of the largest free memory block.
| pid | - The partition id |
| SceSize sceKernelPartitionTotalFreeMemSize | ( | int | pid | ) |
Get the total amount of free memory.
| pid | - The partition id |
| int sceKernelQueryMemoryPartitionInfo | ( | int | pid, |
| PspSysmemPartitionInfo * | info ) |
Query the parition information.
| pid | - The partition id |
| info | - Pointer to the PspSysmemPartitionInfo structure |
| int sceKernelSetCompiledSdkVersion | ( | int | version | ) |
Set the version of the SDK with which the caller was compiled.
Version numbers are as for sceKernelDevkitVersion().
| int sceKernelSetDdrMemoryProtection | ( | void * | addr, |
| int | size, | ||
| int | prot ) |
Set the protection of a block of ddr memory.
| addr | - Address to set protection on |
| size | - Size of block |
| prot | - Protection bitmask |
| void sceKernelSysMemDump | ( | void | ) |
Get the kernel to dump the internal memory table to Kprintf.
| void sceKernelSysMemDumpBlock | ( | void | ) |
Dump the list of memory blocks.
| void sceKernelSysMemDumpTail | ( | void | ) |
Dump the tail blocks.
| SceUidControlBlock * SysMemForKernel_536AD5E1 | ( | void | ) |
Get the root of the UID tree (1.5+ only)