vitasdk
Documentation of the vitasdk
address_space.h File Reference

Go to the source code of this file.

Data Structures

struct  SceKernelProcessContext
 

Macros

#define ksceKernelGetPidContext   ksceKernelProcessGetContext
 
#define ksceKernelSwitchPidContext   ksceKernelProcessSwitchContext
 
#define ksceKernelGetPaddr(va, pa)   ksceKernelVAtoPA(va, pa)
 
#define ksceKernelGetPaddrList(input, list)   ksceKernelVARangeToPAVector((const SceKernelVARange *)input, list)
 

Functions

int ksceKernelVAtoPA (const void *va, uintptr_t *pa)
 Get the physical address of a given virtual address. More...
 
int ksceKernelVARangeToPARange (const SceKernelVARange *va_range, SceKernelPARange *pa_range)
 Get the physical address range of a given virtual address range. More...
 
int ksceKernelVARangeToPAVector (const SceKernelVARange *va_range, SceKernelPAVector *pa_vector)
 Get the physical address list of a given virtual address range. More...
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceKernelProcessContext)
 
int ksceKernelProcessGetContext (SceUID pid, SceKernelProcessContext **ctx)
 Get the process context. More...
 
int ksceKernelProcessSwitchContext (const SceKernelProcessContext *new_context, SceKernelProcessContext *prev_context)
 Switch the process context. More...
 
int ksceKernelAddressSpaceFreeAllMemBlock (SceUID guid)
 
int ksceKernelAddressSpaceSetPhyMemPart (SceUID guid, SceUInt32 index, void *pPhyMemPart)
 
int ksceKernelAddressSpaceUnmap (SceUID uid, int a2, int a3, void *addr, SceSize size)
 
int ksceKernelAddressSpaceVAtoPA (void *pAS, SceUInt32 mode, void *pVA, void **pPA)
 
SceUID ksceKernelCreateAddressSpace (SceUID pid, const char *name, SceUInt32 type, void *pOpt)
 
int ksceKernelDeleteAddressSpace (SceUID guid)