REpsp2
PSP2 OS reverse engineering
Loading...
Searching...
No Matches
oheap.h File Reference

Go to the source code of this file.

Data Structures

struct  HeapDescriptor
struct  ObjectHeap

Macros

#define OHEAP_RESOURCE_TYPES_NUM   6

Functions

void ObjectHeap_init (ObjectHeap *pObjectHeap, SceKernelPhyMemPart *pPhyMemPart, SceUInt32 num_heaps, struct HeapDescriptor *heaps, SceKernelHeapHook *pHeapHook)
void ObjectHeap_set_heap_for_size (ObjectHeap *pObjectHeap, SceSize itemSize, SceUIDHeap *pHeap, int heapGuid)
SceUIDHeapObjectHeapGetHeap (ObjectHeap *pObjectHeap, SceSize size)
 Get appropriate heap for allocations of given size.
SceInt32 ObjectHeapSetResourceLimit (ObjectHeap *pObjectHeap, SceUInt32 resourceType, SceInt32 nMaxLimit, SceSize max_cache_size)
void * ObjectHeap_get_unk18 (ObjectHeap *pObjectHeap)
SceBool ObjectHeapAllocLimit (ObjectHeap *pObjectHeap, SceUInt32 type, ScePVoid *ppObject)
 Allocate resource from object heap with limit checking.
SceBool ObjectHeapFree (ObjectHeap *pObjectHeap, SceUInt32 type, ScePVoid pObject)
 Attempt freeing memory into object heap.
ObjectHeapget_kernel_objectheap (void)
 Obtain pointer to the kernel's object heap.
SceInt32 sceKernelCreateObjectHeap (ScePID processId, int a2, SceKernelHeapHook *pHeapHook, ObjectHeap **ppObjectHeap)
 Create an object heap.
SceInt32 sceKernelObjectHeapStart (ObjectHeap *pObjectHeap, int a2, unsigned a3)
SceInt32 sce_KernelDeleteObjectHeap (ObjectHeap *pObjectHeap)
 Delete an object heap.
SceInt32 sceKernelObjectHeap_setResourceSize (SceUInt32 type, SceSize size)
 Set size of resources of a given type in object heap.
SceInt32 sceKernelObjectHeapSetResourceLimit (ObjectHeap *pObjectHeap, SceUInt32 resourceType, SceInt32 nMaxLimit, SceSize max_cache_size)
 Set limit for specific resource in object heap.
SceInt32 sceKernelObjectHeapSetResourceLimitAll (ObjectHeap *pObjectHeap, unsigned a2, const void *a3)
 Set limit for "all" resource types in an object heap.
ScePVoid sceKernelObjectHeapAlloc (ObjectHeap *pObjectHeap, SceSize size)
 Allocate memory from an object heap.
SceInt32 sceKernelObjectHeapFree (ObjectHeap *pObjectHeap, SceSize size, ScePVoid ptr)
 Free memory allocated from an object heap.

Macro Definition Documentation

◆ OHEAP_RESOURCE_TYPES_NUM

#define OHEAP_RESOURCE_TYPES_NUM   6

Number of distinct resource types supported

Definition at line 17 of file oheap.h.