psl1ght
A free SDK for Sony's PS3 console
Macros | Functions
memory.h File Reference

Memory management functions. More...

#include <ppu-lv2.h>
#include <lv2/memory.h>

Go to the source code of this file.

Macros

#define SYS_MEMORY_PAGE_SIZE_1M   0x0000000000000400ULL
 
#define SYS_MEMORY_PAGE_SIZE_64K   0x0000000000000200ULL
 
#define SYS_MEMORY_ACCESS_RIGHT_PPU_THR   0x0000000000000008ULL
 
#define SYS_MEMORY_ACCESS_RIGHT_HANDLER   0x0000000000000004ULL
 
#define SYS_MEMORY_ACCESS_RIGHT_SPU_THR   0x0000000000000002ULL
 
#define SYS_MEMORY_ACCESS_RIGHT_RAW_SPU   0x0000000000000001ULL
 
#define SYS_MEMORY_ACCESS_RIGHT_ANY
 
#define SYS_MEMORY_ACCESS_RIGHT_NONE   0x00000000000000f0ULL
 
#define SYS_MEMORY_PROT_READ_ONLY   0x0000000000080000ULL
 
#define SYS_MEMORY_PROT_READ_WRITE   0x0000000000040000ULL
 

Functions

LV2_SYSCALL sysMemoryAllocate (size_t size, u64 flags, sys_mem_addr_t *alloc_addr)
 
LV2_SYSCALL sysMemoryFree (sys_mem_addr_t start_addr)
 
LV2_SYSCALL sysMMapperAllocateAddress (size_t size, u64 flags, size_t alignment, sys_mem_addr_t *alloc_addr)
 
LV2_SYSCALL sysMMapperFreeAddress (sys_mem_addr_t start_addr)
 
LV2_SYSCALL sysMMapperSearchAndMap (sys_mem_addr_t start_addr, sys_mem_id_t mem_id, u64 flags, sys_mem_addr_t *alloc_addr)
 
LV2_SYSCALL sysMemContainerCreate (sys_mem_container_t *container, size_t size)
 
LV2_SYSCALL sysMemContainerDestroy (sys_mem_container_t container)
 
LV2_SYSCALL sysMemAllocateFromContainer (size_t size, sys_mem_container_t container, u64 flags, sys_mem_addr_t *alloc_addr)
 

Detailed Description

Memory management functions.

Macro Definition Documentation

◆ SYS_MEMORY_ACCESS_RIGHT_ANY

#define SYS_MEMORY_ACCESS_RIGHT_ANY
Value:
(SYS_MEMORY_ACCESS_RIGHT_PPU_THR | \
SYS_MEMORY_ACCESS_RIGHT_HANDLER | \
SYS_MEMORY_ACCESS_RIGHT_SPU_THR | \
SYS_MEMORY_ACCESS_RIGHT_RAW_SPU)