psl1ght
A free SDK for Sony's PS3 console
Functions
mm.h File Reference

RSX memory management. More...

#include <ppu-types.h>

Go to the source code of this file.

Functions

s32 rsxHeapInit ()
 Initialize the RSX heap. More...
 
void * rsxMalloc (u32 size)
 Dynamic allocation of RSX memory. More...
 
void * rsxMemalign (u32 alignment, u32 size)
 Dynamic allocation of aligned RSX memory. More...
 
void rsxFree (void *ptr)
 Deallocation of a previously dynamically allocated RSX buffer. More...
 

Detailed Description

RSX memory management.

Function Documentation

◆ rsxFree()

void rsxFree ( void *  ptr)

Deallocation of a previously dynamically allocated RSX buffer.

The buffer must have been allocated with rsxMalloc or rsxMemalign.

Parameters
ptrPointer to the allocated buffer.

◆ rsxHeapInit()

s32 rsxHeapInit ( )

Initialize the RSX heap.

Returns
0 if no error, nonzero otherwise.

◆ rsxMalloc()

void* rsxMalloc ( u32  size)

Dynamic allocation of RSX memory.

Parameters
sizeSize in bytes of buffer to be allocated.
Returns
Pointer to the allocated buffer, or NULL if an error occured.

◆ rsxMemalign()

void* rsxMemalign ( u32  alignment,
u32  size 
)

Dynamic allocation of aligned RSX memory.

Parameters
alignmentThe required alignment value.
sizeSize in bytes of buffer to be allocated.
Returns
Pointer to the allocated buffer, or NULL if an error occured.