vitasdk
Documentation of the vitasdk
sysmem.h File Reference

Go to the source code of this file.

Data Structures

struct  SceKernelAllocMemBlockOpt
 
struct  SceKernelFreeMemorySizeInfo
 
struct  SceKernelMemBlockInfo
 

Enumerations

enum  SceKernelMemoryAccessType { SCE_KERNEL_MEMORY_ACCESS_X = 0x01 , SCE_KERNEL_MEMORY_ACCESS_W = 0x02 , SCE_KERNEL_MEMORY_ACCESS_R = 0x04 }
 
enum  SceKernelMemoryType { SCE_KERNEL_MEMORY_TYPE_NORMAL_NC = 0x80 , SCE_KERNEL_MEMORY_TYPE_NORMAL = 0xD0 }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x40, SceKernelAllocMemBlockOpt)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceKernelFreeMemorySizeInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceKernelMemBlockInfo)
 
SceUID sceKernelAllocMemBlock (const char *name, SceKernelMemBlockType type, SceSize size, SceKernelAllocMemBlockOpt *opt)
 Allocates a new memory block.
 
int sceKernelFreeMemBlock (SceUID uid)
 Frees new memory block.
 
int sceKernelGetMemBlockBase (SceUID uid, void **base)
 Gets the base address of a memory block.
 
SceUID sceKernelFindMemBlockByAddr (const void *addr, SceSize size)
 Gets the associated memory block to a given memory location.
 
int sceKernelGetMemBlockInfoByAddr (void *base, SceKernelMemBlockInfo *info)
 Gets memory block information given a base address.
 
int sceKernelGetMemBlockInfoByRange (void *base, SceSize size, SceKernelMemBlockInfo *info)
 Gets memory block information given a memory location.
 
SceUID sceKernelAllocMemBlockForVM (const char *name, SceSize size)
 Allocates a new memory block for Virtual Machine domain.
 
int sceKernelSyncVMDomain (SceUID uid, void *data, SceSize size)
 Flushes Virtual Machine caches for the given memory location.
 
int sceKernelOpenVMDomain (void)
 Makes all Virtual Machine domain memblocks executeable.
 
int sceKernelCloseVMDomain (void)
 Makes all Virtual Machine domain memblocks non executeable.
 
int sceKernelOpenMemBlock (const char *name, int flags)
 
int sceKernelCloseMemBlock (SceUID uid)
 
int sceKernelGetModelForCDialog (void)
 Get the model number of the device.
 
int sceKernelGetModel (void)
 Get the model number of the device.
 
int sceKernelGetFreeMemorySize (SceKernelFreeMemorySizeInfo *info)
 Get free memory size in bytes.
 
int sceKernelIsPSVitaTV (void)
 Returns wether the running device is a PSTV or not.