vitasdk
Documentation of the vitasdk
data_transfers.h File Reference
#include <psp2kern/types.h>

Go to the source code of this file.

Macros

#define ksceKernelMemcpyUserToKernel(__dst__, __src__, __len__)   ksceKernelCopyFromUser((__dst__), (__src__), (__len__))
 
#define ksceKernelMemcpyUserToKernelForPid(__pid__, __dst__, __src__, __len__)   ksceKernelCopyFromUserProc((__pid__), (__dst__), (__src__), (__len__))
 
#define ksceKernelMemcpyKernelToUser(__dst__, __src__, __len__)   ksceKernelCopyToUser((__dst__), (__src__), (__len__))
 
#define ksceKernelMemcpyToUserRo(__dst__, __src__, __len__)   ksceKernelCopyToUserDomain((__dst__), (__src__), (__len__))
 
#define ksceKernelMemcpyToUserRx(__dst__, __src__, __len__)   ksceKernelCopyToUserTextDomain((__dst__), (__src__), (__len__))
 
#define ksceKernelRxMemcpyKernelToUserForPid(__pid__, __dst__, __src__, __len__)   ksceKernelCopyToUserProcTextDomain((__pid__), (__dst__), (__src__), (__len__))
 
#define ksceKernelMemcpyFromUser(__dst__, __src__, __len__)   ksceKernelCopyFromUser(__dst__, __src__, __len__)
 
#define ksceKernelProcMemcpyFromUser(__pid__, __dst__, __src__, __len__)   ksceKernelCopyFromUserProc(__pid__, __dst__, __src__, __len__)
 
#define ksceKernelMemcpyToUser(__dst__, __src__, __len__)   ksceKernelCopyToUser(__dst__, __src__, __len__)
 
#define ksceKernelProcMemcpyToUser(__pid__, __dst__, __src__, __len__)   ksceKernelCopyToUserProc(__pid__, __dst__, __src__, __len__)
 
#define ksceKernelUserMemcpy(__dst__, __src__, __len__)   ksceKernelCopyFromToUser(__dst__, __src__, __len__)
 
#define ksceKernelProcUserMemcpy(__pid__, __dst__, __src__, __len__)   ksceKernelCopyFromToUserProc(__pid__, __dst__, __src__, __len__)
 
#define ksceKernelProcMemcpyToUserRx(__pid__, __dst__, __src__, __len__)   ksceKernelCopyToUserProcTextDomain(__pid__, __dst__, __src__, __len__)
 
#define ksceKernelStrncpyUserToKernel(__dst__, __src__, __len__)   ksceKernelStrncpyFromUser((__dst__), (__src__), (__len__))
 
#define ksceKernelStrncpyUserForPid(__pid__, __dst__, __src__, __len__)   ksceKernelStrncpyFromUserProc((__pid__), (__dst__), (__src__), (__len__))
 
#define ksceKernelStrncpyKernelToUser(__dst__, __src__, __len__)   ksceKernelStrncpyToUser((__dst__), (__src__), (__len__))
 
#define ksceKernelProcStrncpyFromUser(__pid__, __dst__, __src__, __len__)   ksceKernelStrncpyFromUserProc((__pid__), (__dst__), (__src__), (__len__))
 
#define ksceKernelProcStrncpyToUser(__pid__, __dst__, __src__, __len__)   ksceKernelStrncpyToUserProc((__pid__), (__dst__), (__src__), (__len__))
 
#define ksceKernelStrnlenUser(__s__, __n__)   ksceKernelStrnlenFromUser(__s__, __n__)
 
#define ksceKernelProcStrnlenUser(__pid__, __s__, __n__)   ksceKernelStrnlenFromUserProc(__pid__, __s__, __n__)
 

Functions

int ksceKernelCopyFromUser (void *dst, const void *src, SceSize len)
 Memcpy from user memory. More...
 
int ksceKernelCopyFromUserProc (SceUID pid, void *dst, const void *src, SceSize len)
 Memcpy from user memory with process. More...
 
int ksceKernelCopyToUser (void *dst, const void *src, SceSize len)
 Memcpy to user memory. More...
 
int ksceKernelCopyToUserProc (SceUID pid, void *dst, const void *src, SceSize len)
 Memcpy from user memory with process. More...
 
int ksceKernelCopyToUserDomain (void *dst, const void *src, SceSize len)
 Memcpy to user RO memory. More...
 
int ksceKernelCopyToUserTextDomain (void *dst, const void *src, SceSize len)
 Memcpy to user RO memory with DcacheAndL2WritebackRange. More...
 
int ksceKernelCopyToUserProcTextDomain (SceUID pid, void *dst, const void *src, SceSize len)
 Memcpy to user RX memory with process. More...
 
SceSSize ksceKernelStrncpyFromUser (char *dst, const char *src, SceSize len)
 Strncpy from user memory. More...
 
SceSSize ksceKernelStrncpyFromUserProc (SceUID pid, char *dst, const char *src, SceSize len)
 Strncpy from user memory with process. More...
 
SceSSize ksceKernelStrncpyToUser (char *dst, const char *src, SceSize len)
 Strncpy to user memory. More...
 
SceSSize ksceKernelStrncpyToUserProc (SceUID pid, char *dst, const char *src, SceSize len)
 Strncpy to user memory with process. More...
 
SceSize ksceKernelStrnlenFromUser (const char *s, SceSize n)
 Strnlen user memory. More...
 
SceSSize ksceKernelStrnlenFromUserProc (SceUID pid, const char *s, SceSize n)
 Strnlen user memory with process. More...
 
int ksceKernelCopyFromToUser (void *dst, const void *src, SceSize len)
 Memcpy user memory to user memory. More...
 
int ksceKernelCopyFromToUserProc (SceUID pid, void *dst, const void *src, SceSize len)
 Memcpy user memory to user memory with process. More...