vitasdk
Documentation of the vitasdk
iofilemgr.h File Reference

Go to the source code of this file.

Data Structures

struct  SceIoFdInfo
 
struct  SceIofileInfo
 
struct  SceIoMount
 One entry returned by vfsGetMntList. More...
 
struct  SceIoMountInfo
 FW 3.60 snapshot returned by vfsGetMntInfo. More...
 
struct  SceVfsChstatArgs
 
struct  SceVfsChstatByFdArgs
 
struct  SceVfsCloseArgs
 
struct  SceVfsIoctlArgs
 
struct  SceVfsOpenArgs
 
struct  SceVfsPreadArgs
 
struct  SceVfsPwriteArgs
 
struct  SceVfsReadArgs
 
struct  SceVfsWriteArgs
 
struct  SceIoErrorEventInfo
 Result block in user memory, owned by the caller, for ksceIoCreateErrorEvent. More...
 

Macros

#define ksceIoGetGUIDFdList   ksceIoGetGUIDFdListForDebugger
 
#define ksceIoGetPUIDFdList   ksceIoGetPUIDFdListForDebugger
 

Typedefs

typedef int() SceIoPathMappingFunc(const char *path, ScePID pid, char *mapped_path, SceSize mapped_path_size)
 Path-mapping callback installed by ksceIoSetPathMappingFunction.
 

Enumerations

enum  SceIoMountEvent {
  SCE_IO_MOUNT_EVENT_MOUNTED = 0x001 , SCE_IO_MOUNT_EVENT_UNMOUNTED = 0x002 , SCE_IO_MOUNT_EVENT_MOUNT_FAILED = 0x010 , SCE_IO_MOUNT_EVENT_UNMOUNT_FAILED = 0x020 ,
  SCE_IO_MOUNT_EVENT_DEVICE_ATTACHED = 0x100 , SCE_IO_MOUNT_EVENT_DEVICE_DETACHED = 0x200
}
 Event bits accepted by ksceIoCreateMountEvent. More...
 
enum  SceIoErrorEvent { SCE_IO_ERROR_EVENT_OCCURRED = 0x1 }
 Event bits accepted by ksceIoCreateErrorEvent. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (8, SceIoFdInfo)
 
int ksceIoGetGUIDFdListForDebugger (int vis_level, SceIoFdInfo *dst, SceSize max_size, SceSize *res_size)
 Get global file descriptor.
 
int ksceIoGetPUIDFdListForDebugger (int vis_level, SceIoFdInfo *dst, SceSize max_size, SceSize *res_size)
 Get process file descriptor.
 
 VITASDK_BUILD_ASSERT_EQ (0x828, SceIofileInfo)
 
int ksceIoGetFileInfo (SceUID fd, SceUID pid, SceIofileInfo *info)
 Get file info.
 
int ksceIoMount (int id, const char *path, int permission, int a4, int a5, int a6)
 Mounts a device.
 
int ksceIoUmount (int id, int a2, int a3, int a4)
 Unmounts a device.
 
int ksceIoGetRemoteKPLSData (SceUID pid, void *dst)
 Get Remote Kernel Process Local Storage Data.
 
 VITASDK_BUILD_ASSERT_EQ (0x34, SceIoMount)
 
 VITASDK_BUILD_ASSERT_EQ (0x54C, SceIoMountInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceVfsChstatArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceVfsChstatByFdArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0x4, SceVfsCloseArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceVfsIoctlArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceVfsOpenArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceVfsPreadArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceVfsPwriteArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceVfsReadArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceVfsWriteArgs)
 
 VITASDK_BUILD_ASSERT_EQ (0x1C, SceIoErrorEventInfo)
 
int ksceIoChstatForVshbridge (const char *name, const SceIoStat *stat, unsigned int cbit)
 Change file status for VshBridge, allowing the internal attribute-change bit.
 
int ksceIoClearErrorEvent (SceUID event_uid)
 Clear an error event's one-shot notification latch.
 
SceUID ksceIoCreateErrorEvent (int vsh_mount_id, SceUInt32 event_bits, SceIoErrorEventInfo *event_info)
 Create an I/O error event.
 
SceUID ksceIoCreateMountEvent (int vsh_mount_id, SceUInt32 event_bits)
 Create a mount event.
 
int ksceIoDeleteErrorEvent (SceUID event_uid)
 Delete an I/O error event by kernel GUID.
 
int ksceIoDeleteMountEvent (SceUID event_uid)
 Delete a mount event by kernel GUID.
 
int ksceIoDreadForVshbridge (SceUID fd, SceIoDirent *dir)
 Read a directory entry for VshBridge, preserving SceIoStat::st_attr.
 
int ksceIoGetMediaType (ScePID pid, const char *path, int ignored, SceUInt32 *media_type)
 Get the media type for a path.
 
int ksceIoGetThreadDefaultPriorityForSystem (void)
 Return the current thread's default I/O priority using the system-priority view.
 
int ksceIoGetstatForVshbridge (const char *name, SceIoStat *stat)
 Get file status for VshBridge, preserving SceIoStat::st_attr.
 
int ksceIoIoctl (SceUID fd, int cmd, const void *argp, SceSize arglen, void *bufp, SceSize buflen)
 Perform an ioctl using kernel buffers.
 
SceUID ksceIoOpenForPid (ScePID pid, const char *filename, int flags, SceMode mode)
 Open a path after resolving overlays in another process's namespace.
 
int ksceIoSetPathMappingFunction (SceIoPathMappingFunc *func)
 Install or remove the process-path mapping callback.
 
int ksceIoSyncByFd2 (SceUID fd, int flags)
 Synchronize a file descriptor.
 
SceUID vfsAllocateFileDummy (int flags, SceBool is_dir, const char *name)
 Allocate a dummy internal VFS file object named name.
 
int vfsChstat (SceVfsChstatArgs *args)
 Change file status through VFS before returning.
 
int vfsChstatByFd (SceVfsChstatByFdArgs *args)
 Change file status by descriptor through VFS before returning.
 
int vfsClose (SceVfsCloseArgs *args)
 Close a file through VFS before returning.
 
int vfsGetMntInfo (SceVfsMount *mnt, SceIoMountInfo *info)
 Get a snapshot of one mounted filesystem.
 
int vfsGetMntList (SceIoMount *mounts, SceSize capacity, SceSize *count)
 List mounted filesystems.
 
int vfsIoctl (SceVfsIoctlArgs *args)
 Perform an ioctl through VFS before returning.
 
SceUID vfsOpen (SceVfsOpenArgs *args)
 Open a file through VFS before returning.
 
SceSSize vfsPread (SceVfsPreadArgs *args)
 Read at the specified file offset before returning.
 
SceSSize vfsPwrite (SceVfsPwriteArgs *args)
 Write at the specified file offset before returning.
 
SceSSize vfsRead (SceVfsReadArgs *args)
 Read from a file before returning.
 
SceSSize vfsWrite (SceVfsWriteArgs *args)
 Write to a file before returning.