PSPSDK 1.0+beta2
pspsysmem_kernel.h File Reference
#include <pspkerneltypes.h>
#include <pspsysmem.h>
Include dependency graph for pspsysmem_kernel.h:

Go to the source code of this file.

Data Structures

struct  _PspSysmemPartitionInfo
struct  _uidControlBlock
 Structure of a UID control block. More...


typedef struct _PspSysmemPartitionInfo PspSysmemPartitionInfo
typedef struct _uidControlBlock uidControlBlock


int sceKernelQueryMemoryPartitionInfo (int pid, PspSysmemPartitionInfo *info)
 Query the parition information. More...
SceSize sceKernelPartitionTotalFreeMemSize (int pid)
 Get the total amount of free memory. More...
SceSize sceKernelPartitionMaxFreeMemSize (int pid)
 Get the size of the largest free memory block. More...
void sceKernelSysMemDump (void)
 Get the kernel to dump the internal memory table to Kprintf. More...
void sceKernelSysMemDumpBlock (void)
 Dump the list of memory blocks. More...
void sceKernelSysMemDumpTail (void)
 Dump the tail blocks. More...
int sceKernelSetDdrMemoryProtection (void *addr, int size, int prot)
 Set the protection of a block of ddr memory. More...
SceUID sceKernelCreateHeap (SceUID partitionid, SceSize size, int unk, const char *name)
 Create a heap. More...
void * sceKernelAllocHeapMemory (SceUID heapid, SceSize size)
 Allocate a memory block from a heap. More...
int sceKernelFreeHeapMemory (SceUID heapid, void *block)
 Free a memory block allocated from a heap. More...
int sceKernelDeleteHeap (SceUID heapid)
 Delete a heap. More...
SceSize sceKernelHeapTotalFreeSize (SceUID heapid)
 Get the amount of free size of a heap, in bytes. More...
struct _uidControlBlock __attribute__ ((packed))
int sceKernelGetUIDcontrolBlock (SceUID uid, uidControlBlock **block)
 Get a UID control block. More...
int sceKernelGetUIDcontrolBlockWithType (SceUID uid, uidControlBlock *type, uidControlBlock **block)
 Get a UID control block on a particular type. More...
uidControlBlockSysMemForKernel_536AD5E1 (void)
 Get the root of the UID tree (1.5+ only) More...
int sceKernelDeleteUID (SceUID uid)
 Delete a UID. More...
int sceKernelGetModel (void)
 Get the model of PSP. More...
int sceKernelSetCompiledSdkVersion (int version)
 Set the version of the SDK with which the caller was compiled. More...
int sceKernelGetCompiledSdkVersion (void)
 Get the SDK version set with sceKernelSetCompiledSdkVersion(). More...


struct _uidControlBlockparent
struct _uidControlBlocknextChild
struct _uidControlBlocktype
u32 UID
char * name
unsigned char unk
unsigned char size
short attribute
struct _uidControlBlocknextEntry

Variable Documentation

◆ attribute

short attribute

◆ name

char* name

◆ nextChild

struct _uidControlBlock* nextChild

◆ nextEntry

struct _uidControlBlock* nextEntry

◆ parent

struct _uidControlBlock* parent

◆ size

unsigned char size

◆ type

struct _uidControlBlock* type

Referenced by sceGuLight(), and sceGuSetMatrix().


u32 UID

◆ unk

unsigned char unk