7#ifndef _PSP2_KERNEL_SYSMEM_H_
8#define _PSP2_KERNEL_SYSMEM_H_
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
int flags
Event flags.
Definition debug.h:3
SceSize size
Definition lsdb.h:11
SceInt32 type
Must be 100 when passed to sceLsdbReplaceTheme on FW 3.60.
Definition lsdb.h:2
SceUInt32 SceKernelMemBlockType
Definition sysmem.h:16
int sceKernelGetMemBlockBase(SceUID uid, void **base)
Gets the base address of a memory block.
SceKernelMemoryAccessType
Definition sysmem.h:38
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.
SceSize size
Definition sysmem.h:20
int sceKernelGetMemBlockInfoByRange(void *base, SceSize size, SceKernelMemBlockInfo *info)
Gets memory block information given a memory location.
const char * strBaseBlockName
Definition sysmem.h:24
int sceKernelCloseMemBlock(SceUID uid)
int sceKernelGetModelForCDialog(void)
Get the model number of the device.
int sceKernelOpenMemBlock(const char *name, int flags)
SceSize size
Must be set to sizeof(SceKernelSubbudgetInfo).
Definition sysmem.h:175
int sceKernelIsPSVitaTV(void)
Returns wether the running device is a PSTV or not.
SceSize free_size
Free space in the subbudget in bytes.
Definition sysmem.h:177
int sceKernelGetMemBlockInfoByAddr(void *base, SceKernelMemBlockInfo *info)
Gets memory block information given a base address.
SceUID sceKernelAllocMemBlock(const char *name, SceKernelMemBlockType type, SceSize size, SceKernelAllocMemBlockOpt *opt)
Allocates a new memory block.
int sceKernelFreeMemBlockForVM(SceUID uid)
Frees a VM memblock tracked by the calling process.
int sceKernelCheckModelCapability(int capability_index)
Tests a hardware-model capability whose purpose is unknown.
int size
sizeof(SceKernelFreeMemorySizeInfo)
Definition sysmem.h:31
SceSize total_size
Total size of the subbudget in bytes.
Definition sysmem.h:176
int size_user
Free memory size for *_USER_RW memory.
Definition sysmem.h:32
int sceKernelGetModel(void)
Get the model number of the device.
int sceKernelFreeMemBlock(SceUID uid)
Frees new memory block.
SceUID sceKernelFindMemBlockByAddr(const void *addr, SceSize size)
Gets the associated memory block to a given memory location.
SceUInt32 uidBaseBlock
Definition sysmem.h:23
int reserved[10]
Unknown flags 0x10 or 0x30 for sceKernelOpenMemBlock.
Definition sysmem.h:26
int flags
Definition sysmem.h:25
SceUInt32 attr
Definition sysmem.h:21
int sceKernelGetFreeMemorySize(SceKernelFreeMemorySizeInfo *info)
Get free memory size in bytes.
int sceKernelCloseVMDomain(void)
Makes all Virtual Machine domain memblocks non executeable.
SceUID sceKernelAllocUnmapMemBlock(const char *name, SceSize size)
Allocates a user memblock without mapping it.
SceKernelSubbudgetId
Definition sysmem.h:181
int size_cdram
Free memory size for USER_CDRAM_RW memory.
Definition sysmem.h:33
SceSize alignment
Definition sysmem.h:22
int sceKernelGetSubbudgetInfo(SceKernelSubbudgetId subbudget, SceKernelSubbudgetInfo *info)
Gets the total and free size of a memory subbudget.
SceUID sceKernelAllocMemBlockForVM(const char *name, SceSize size)
Allocates a new memory block for Virtual Machine domain.
int size_phycont
Free memory size for USER_MAIN_PHYCONT_*_RW memory.
Definition sysmem.h:34
@ SCE_KERNEL_MEMORY_ACCESS_X
Execute privileges.
Definition sysmem.h:39
@ SCE_KERNEL_MEMORY_ACCESS_W
Write privileges.
Definition sysmem.h:40
@ SCE_KERNEL_MEMORY_ACCESS_R
Read privileges.
Definition sysmem.h:41
@ SCE_KERNEL_SUBBUDGET_ID_MAIN
Definition sysmem.h:182
@ SCE_KERNEL_SUBBUDGET_ID_CDLG
Common-dialog memory subbudget.
Definition sysmem.h:183
unsigned int SceSize
Definition types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90
uint32_t SceUInt32
Definition types.h:45