vitasdk
Documentation of the vitasdk
|
#include <vitasdk/build_utils.h>
#include <psp2kern/types.h>
#include <psp2kern/kernel/sysmem/address_space.h>
#include <psp2kern/kernel/sysmem/uid_class.h>
#include <psp2kern/kernel/sysmem/uid_guid.h>
#include <psp2kern/kernel/sysmem/uid_puid.h>
#include <psp2kern/kernel/sysmem/uid_entryheap.h>
#include <psp2kern/kernel/sysmem/fixedheap.h>
#include <psp2kern/kernel/sysmem/nameheap.h>
#include <psp2kern/kernel/sysmem/heap.h>
#include <psp2kern/kernel/sysmem/data_transfers.h>
#include <psp2kern/kernel/sysmem/memtype.h>
#include <psp2common/kernel/sysmem.h>
Go to the source code of this file.
Data Structures | |
struct | SceKernelAllocMemBlockKernelOpt |
Typedefs | |
typedef SceKernelAllocMemBlockKernelOpt | SceKernelAllocMemBlockOptKernel |
Enumerations | |
enum | SceKernelMemoryRefPerm { SCE_KERNEL_MEMORY_REF_PERM_ANY = 0 , SCE_KERNEL_MEMORY_REF_PERM_USER_R = 0x01 , SCE_KERNEL_MEMORY_REF_PERM_USER_W = 0x02 , SCE_KERNEL_MEMORY_REF_PERM_USER_X = 0x04 , SCE_KERNEL_MEMORY_REF_PERM_KERN_R = 0x10 , SCE_KERNEL_MEMORY_REF_PERM_KERN_W = 0x20 , SCE_KERNEL_MEMORY_REF_PERM_KERN_X = 0x40 } |
Functions | |
VITASDK_BUILD_ASSERT_EQ (0x58, SceKernelAllocMemBlockKernelOpt) | |
SceUID | ksceKernelAllocMemBlock (const char *name, SceKernelMemBlockType type, SceSize size, SceKernelAllocMemBlockKernelOpt *opt) |
Allocates a new memory block. More... | |
int | ksceKernelFreeMemBlock (SceUID uid) |
Frees new memory block. More... | |
int | ksceKernelGetMemBlockBase (SceUID uid, void **base) |
Gets the base address of a memory block. More... | |
int | ksceKernelGetMemBlockType (SceUID uid, unsigned int *type) |
Gets the memory block type of a memory block. More... | |
SceUID | ksceKernelFindMemBlockByAddr (const void *addr, SceSize size) |
Find the SceUID of a memory block. More... | |
SceUID | ksceKernelFindProcMemBlockByAddr (SceUID pid, const void *addr, SceSize size) |
Find the SceUID of a memory block in a process. More... | |
int | ksceKernelGetMemBlockAllocMapSize (SceUID memid, SceSize *alloc_map_size) |
Get the AllocMapSize of a MemBlock. More... | |
int | ksceKernelMapMemBlock (SceUID uid) |
Map a memblock. More... | |
int | ksceKernelMapMemBlockWithFlag (SceUID uid, int flag) |
Map a memblock. More... | |
int | ksceKernelRemapMemBlock (SceUID uid, SceKernelMemBlockType type) |
Changes the block type. More... | |
int | ksceKernelUnmapMemBlock (SceUID uid) |
Unmap a memblock. More... | |
SceUID | ksceKernelUserMap (const char *name, int permission, const void *user_buf, SceSize size, void **kernel_page, SceSize *kernel_size, SceUInt32 *kernel_offset) |
The mapping user address space to kernel. More... | |
SceUID | ksceKernelProcUserMap (SceUID pid, const char *name, int permission, const void *user_buf, SceSize size, void **kernel_page, SceSize *kernel_size, SceUInt32 *kernel_offset) |
The mapping user address space to kernel with process. More... | |
SceUID | ksceKernelUserMapWithFlags (const char *name, int permission, int flags, const void *user_buf, SceSize size, void **kernel_page, SceSize *kernel_size, unsigned int *kernel_offset) |
The mapping user address space to kernel with flags. More... | |
int | ksceKernelUserUnmap (SceUID uid) |
Frees a memblock mapped with ksceKernelUserMap. More... | |
int | ksceKernelLockRange (void *addr, SceSize size) |
Locks a memory range. More... | |
int | ksceKernelLockRangeProc (SceUID pid, void *addr, SceSize size) |
Locks a memory range for a process (pid) More... | |
int | ksceKernelLockRangeWithMode (SceKernelMemoryRefPerm perm, void *addr, SceSize size) |
Locks a memory range, checking for a given permission. More... | |
int | ksceKernelUnlockRange (void *addr, SceSize size) |
Unlocks a memory range. More... | |
int | ksceKernelUnlockRangeProc (SceUID pid, void *addr, SceSize size) |
Unlocks a memory range for a process (pid) More... | |
int | ksceKernelUnlockRangeWithMode (SceKernelMemoryRefPerm perm, void *addr, SceSize size) |
Unlocks a memory range checking for a given permission. More... | |
SceUID | ksceKernelAllocPartitionMemBlock (SceUID part, const char *name, SceKernelMemBlockType type, SceSize size, const SceKernelAllocMemBlockOptKernel *pOpt) |
int | ksceKernelFreeSimpleMemBlock (void *a1) |