vitasdk
Documentation of the vitasdk
sysmem.h File Reference

Go to the source code of this file.

Data Structures

struct  SceKernelAllocMemBlockOpt
 
struct  SceKernelFreeMemorySizeInfo
 
struct  SceKernelSubbudgetInfo
 

Enumerations

enum  SceKernelMemoryAccessType { SCE_KERNEL_MEMORY_ACCESS_X = 0x01 , SCE_KERNEL_MEMORY_ACCESS_W = 0x02 , SCE_KERNEL_MEMORY_ACCESS_R = 0x04 }
 
enum  SceKernelSubbudgetId { SCE_KERNEL_SUBBUDGET_ID_MAIN = 0 , SCE_KERNEL_SUBBUDGET_ID_CDLG = 1 }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x40, SceKernelAllocMemBlockOpt)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceKernelFreeMemorySizeInfo)
 
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.
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceKernelSubbudgetInfo)
 
SceUID sceKernelAllocUnmapMemBlock (const char *name, SceSize size)
 Allocates a user memblock without mapping it.
 
int sceKernelCheckModelCapability (int capability_index)
 Tests a hardware-model capability whose purpose is unknown.
 
int sceKernelFreeMemBlockForVM (SceUID uid)
 Frees a VM memblock tracked by the calling process.
 
int sceKernelGetSubbudgetInfo (SceKernelSubbudgetId subbudget, SceKernelSubbudgetInfo *info)
 Gets the total and free size of a memory subbudget.