vitasdk
Documentation of the vitasdk

Exports for Kernel. More...

Data Structures

struct  SceIoDevInfo
 
struct  SceIoStat
 Structure to hold the status information about a file. More...
 
struct  SceIoDirent
 Describes a single directory entry. More...
 
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 SCE_S_ISLNK(m)   (((m) & SCE_S_IFMT) == SCE_S_IFLNK)
 
#define SCE_S_ISREG(m)   (((m) & SCE_S_IFMT) == SCE_S_IFREG)
 
#define SCE_S_ISDIR(m)   (((m) & SCE_S_IFMT) == SCE_S_IFDIR)
 
#define SCE_SO_ISLNK(m)   (((m) & SCE_SO_IFMT) == SCE_SO_IFLNK)
 
#define SCE_SO_ISREG(m)   (((m) & SCE_SO_IFMT) == SCE_SO_IFREG)
 
#define SCE_SO_ISDIR(m)   (((m) & SCE_SO_IFMT) == SCE_SO_IFDIR)
 
#define SCE_CST_MODE   0x0001
 Defines for sceIoChstat and sceIoChstatByFd
 
#define SCE_CST_SIZE   0x0004
 
#define SCE_CST_CT   0x0008
 
#define SCE_CST_AT   0x0010
 
#define SCE_CST_MT   0x0020
 
#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  SceIoMode {
  SCE_O_RDONLY = 0x0001 , SCE_O_WRONLY = 0x0002 , SCE_O_RDWR = (SCE_O_RDONLY | SCE_O_WRONLY) , SCE_O_NBLOCK = 0x0004 ,
  SCE_O_DIROPEN = 0x0008 , SCE_O_RDLOCK = 0x0010 , SCE_O_WRLOCK = 0x0020 , SCE_O_APPEND = 0x0100 ,
  SCE_O_CREAT = 0x0200 , SCE_O_TRUNC = 0x0400 , SCE_O_EXCL = 0x0800 , SCE_O_SCAN = 0x1000 ,
  SCE_O_RCOM = 0x2000 , SCE_O_NOBUF = 0x4000 , SCE_O_NOWAIT = 0x8000 , SCE_O_FDEXCL = 0x01000000 ,
  SCE_O_PWLOCK = 0x02000000 , SCE_O_FGAMEDATA = 0x40000000
}
 
enum  SceIoSeekMode { SCE_SEEK_SET , SCE_SEEK_CUR , SCE_SEEK_END }
 
enum  SceIoDevType {
  SCE_DEV_TYPE_NULL = 0x00 , SCE_DEV_TYPE_CHAR = 0x01 , SCE_DEV_TYPE_BLOCK = 0x04 , SCE_DEV_TYPE_FS = 0x10 ,
  SCE_DEV_TYPE_ALIAS = 0x20 , SCE_DEV_TYPE_MOUNTPT = 0x40
}
 
enum  SceIoAccessMode {
  SCE_S_IXUSR = 000100 , SCE_S_IWUSR = 000200 , SCE_S_IRUSR = 000400 , SCE_S_IRWXU = 000700 ,
  SCE_S_IXGRP = 000000 , SCE_S_IWGRP = 000000 , SCE_S_IRGRP = 000000 , SCE_S_IRWXG = 000000 ,
  SCE_S_IXSYS = 000001 , SCE_S_IWSYS = 000002 , SCE_S_IRSYS = 000004 , SCE_S_IRWXS = 000007 ,
  SCE_S_IXOTH = 000001 , SCE_S_IWOTH = 000002 , SCE_S_IROTH = 000004 , SCE_S_IRWXO = 000007 ,
  SCE_S_ISVTX = 000000 , SCE_S_ISGID = 000000 , SCE_S_ISUID = 000000 , SCE_S_IFDIR = 0010000 ,
  SCE_S_IFREG = 0020000 , SCE_S_IFLNK = 0040000 , SCE_S_IFMT = 0170000
}
 Access modes for st_mode in SceIoStat. More...
 
enum  SceIoFileMode {
  SCE_SO_IXOTH = 0x0001 , SCE_SO_IWOTH = 0x0002 , SCE_SO_IROTH = 0x0004 , SCE_SO_IFLNK = 0x0008 ,
  SCE_SO_IFDIR = 0x0010 , SCE_SO_IFREG = 0x0020 , SCE_SO_IFMT = 0x0038
}
 File modes, used for the st_attr parameter in SceIoStat. More...
 
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 (0x18, SceIoDevInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x58, SceIoStat)
 
 VITASDK_BUILD_ASSERT_EQ (0x160, SceIoDirent)
 
 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.
 

Variables

SceOff SceIoDevInfo::max_size
 
SceOff SceIoDevInfo::free_size
 
SceSize SceIoDevInfo::cluster_size
 
void * SceIoDevInfo::unk
 
SceMode SceIoStat::st_mode
 One or more SceIoAccessMode.
 
unsigned int SceIoStat::st_attr
 One or more SceIoFileMode.
 
SceOff SceIoStat::st_size
 Size of the file in bytes.
 
SceDateTime SceIoStat::st_ctime
 Creation time.
 
SceDateTime SceIoStat::st_atime
 Last access time.
 
SceDateTime SceIoStat::st_mtime
 Last modification time.
 
unsigned int SceIoStat::st_private [6]
 Device-specific data.
 
SceIoStat SceIoDirent::d_stat
 File status.
 
char SceIoDirent::d_name [256]
 File name.
 
void * SceIoDirent::d_private
 Device-specific data.
 
int SceIoDirent::dummy
 Dummy data.
 
SceUID SceIoFdInfo::fd
 
SceUID SceIoFdInfo::pid
 
char SceIofileInfo::path [0x400]
 
char SceIofileInfo::path2 [0x400]
 
SceUID SceIofileInfo::pid
 
int SceIofileInfo::data_0x804
 
int SceIofileInfo::data_0x808
 
int SceIofileInfo::data_0x80C
 
int SceIofileInfo::data_0x810
 
int SceIofileInfo::data_0x814
 
int SceIofileInfo::data_0x818
 
int SceIofileInfo::data_0x81C
 
int SceIofileInfo::data_0x820
 
int SceIofileInfo::data_0x824
 
SceVfsMount * SceIoMount::mnt
 Internal VFS mount.
 
int SceIoMount::vsh_mount_id
 One of SceVshMountId, or -1 for a PFS mount.
 
char SceIoMount::assign_name [0x20]
 Assigned Vita device name, such as ux0:.
 
SceUInt32 SceIoMount::open_entry_count
 Number of open entries on the mount.
 
SceBool SceIoMount::is_pfs_mount
 Nonzero when the mount uses PFS_GDSD_INF.
 
void * SceIoMount::implementation_data
 Mount data specific to the filesystem implementation.
 
SceVfsMount * SceIoMountInfo::mnt
 Internal VFS mount.
 
int SceIoMountInfo::vsh_mount_id
 One of SceVshMountId.
 
char SceIoMountInfo::assign_name [0x20]
 Assigned Vita device name.
 
SceUInt32 SceIoMountInfo::open_entry_count
 Number of open entries on the mount.
 
SceUInt32 SceIoMountInfo::state
 Internal mount state.
 
SceUInt32 SceIoMountInfo::dev_minor
 Internal device-minor value.
 
SceUInt32 SceIoMountInfo::dev_major
 Internal device-major value.
 
SceVfsMount * SceIoMountInfo::mount_copy
 Same pointer as SceIoMountInfo::mnt.
 
SceVfsVnode * SceIoMountInfo::mountpoint
 Vnode on which this filesystem is mounted.
 
SceUID SceIoMountInfo::pool_uid
 Mount allocator UID.
 
SceUInt32 SceIoMountInfo::reference_count
 Internal mount reference count.
 
SceUInt32 SceIoMountInfo::vnode_count
 Number of vnodes belonging to the mount.
 
SceVfsVnode * SceIoMountInfo::vnode_list_head
 First vnode belonging to the mount.
 
SceVfsMount * SceIoMountInfo::mounted_on_list
 First mount attached to this mount.
 
SceVfsMount * SceIoMountInfo::mounted_on_list_prev
 Previous entry in the mounted-on list.
 
SceSize SceIoMountInfo::default_io_cache_size
 Default I/O-cache size.
 
void * SceIoMountInfo::implementation_data
 Mount data specific to the filesystem implementation.
 
void * SceIoMountInfo::fd_lock
 Internal file-descriptor lock object.
 
SceUID SceIoMountInfo::fd_lock_mutex
 File-descriptor lock mutex UID.
 
SceUID SceIoMountInfo::fd_lock_cond
 File-descriptor lock condition-variable UID.
 
SceUInt32 SceIoMountInfo::fd_lock_operation_state
 File-descriptor lock operation state.
 
SceUInt32 SceIoMountInfo::fd_lock_waiter_count
 Number of threads waiting for the file-descriptor lock.
 
void * SceIoMountInfo::mount_cc
 Internal mount cache-control object.
 
SceUInt32 SceIoMountInfo::mount_cc_dirty
 Cache-control dirty value.
 
SceUInt32 SceIoMountInfo::mount_cc_flag
 Value referenced by the cache-control flag pointer.
 
SceUID SceIoMountInfo::mount_cc_event_flag
 Cache-control event-flag UID.
 
SceVfsMountData ** SceIoMountInfo::mount_data_address
 Address of the mount-data pointer.
 
char SceIoMountInfo::unix_mount_path [0x400]
 Internal Unix mount path.
 
SceVfsMountData * SceIoMountInfo::mount_data
 Structure containing mount names and the VSH mount ID.
 
char SceIoMountInfo::filesystem [0x40]
 Filesystem implementation name.
 
char SceIoMountInfo::block_device_primary [0x40]
 Primary block-device name.
 
char SceIoMountInfo::block_device_secondary [0x40]
 Secondary block-device name.
 
const char * SceVfsChstatArgs::path
 
const SceIoStat * SceVfsChstatArgs::stat
 
SceUInt32 SceVfsChstatArgs::cbit
 Bitwise OR of SCE_CST_* values.
 
SceBool SceVfsChstatArgs::allow_attribute_change
 Preserve the internal 0x10000 attribute-change bit.
 
SceUID SceVfsChstatByFdArgs::fd
 
const SceIoStat * SceVfsChstatByFdArgs::stat
 
SceUInt32 SceVfsChstatByFdArgs::cbit
 Bitwise OR of SCE_CST_* values.
 
SceUID SceVfsCloseArgs::fd
 
SceUID SceVfsIoctlArgs::fd
 
int SceVfsIoctlArgs::cmd
 
const void * SceVfsIoctlArgs::indata
 Input buffer.
 
SceSize SceVfsIoctlArgs::inlen
 Size of SceVfsIoctlArgs::indata.
 
void * SceVfsIoctlArgs::outdata
 Output buffer.
 
SceSize SceVfsIoctlArgs::outlen
 Size of SceVfsIoctlArgs::outdata.
 
const char * SceVfsOpenArgs::filename
 
int SceVfsOpenArgs::flags
 Bitwise OR of SceIoMode values.
 
SceMode SceVfsOpenArgs::mode
 File access permissions.
 
SceUID SceVfsPreadArgs::fd
 
void * SceVfsPreadArgs::data
 
SceSize SceVfsPreadArgs::size
 
SceUInt32 SceVfsPreadArgs::padding
 Alignment padding; ignored on FW 3.60.
 
SceOff SceVfsPreadArgs::offset
 
SceUID SceVfsPwriteArgs::fd
 
const void * SceVfsPwriteArgs::data
 
SceSize SceVfsPwriteArgs::size
 
SceUInt32 SceVfsPwriteArgs::padding
 Alignment padding; ignored on FW 3.60.
 
SceOff SceVfsPwriteArgs::offset
 
SceUID SceVfsReadArgs::fd
 
void * SceVfsReadArgs::data
 
SceSize SceVfsReadArgs::size
 
SceUID SceVfsWriteArgs::fd
 
const void * SceVfsWriteArgs::data
 
SceSize SceVfsWriteArgs::size
 
SceUInt32 SceIoErrorEventInfo::vsh_mount_id
 Mount ID that produced the error.
 
int SceIoErrorEventInfo::error_code
 I/O error code.
 
SceUInt32 SceIoErrorEventInfo::reserved1 [2]
 Must be zero when creating the event.
 
int SceIoErrorEventInfo::error_detail
 Additional error value supplied by the I/O subsystem.
 
SceUInt32 SceIoErrorEventInfo::reserved2 [2]
 Must be zero when creating the event.
 

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceIofilemgrForDriver_stub




Data Structure Documentation

◆ SceIoDevInfo

struct SceIoDevInfo
Data Fields
SceOff max_size
SceOff free_size
SceSize cluster_size
void * unk

◆ SceIoStat

struct SceIoStat

Structure to hold the status information about a file.

Data Fields
SceMode st_mode One or more SceIoAccessMode.
unsigned int st_attr One or more SceIoFileMode.
SceOff st_size Size of the file in bytes.
SceDateTime st_ctime Creation time.
SceDateTime st_atime Last access time.
SceDateTime st_mtime Last modification time.
unsigned int st_private[6] Device-specific data.

◆ SceIoDirent

struct SceIoDirent

Describes a single directory entry.

Data Fields
SceIoStat d_stat File status.
char d_name[256] File name.
void * d_private Device-specific data.
int dummy Dummy data.

◆ SceIoFdInfo

struct SceIoFdInfo
Data Fields
SceUID fd
SceUID pid

◆ SceIofileInfo

struct SceIofileInfo
Data Fields
char path[0x400]
char path2[0x400]
SceUID pid
int data_0x804
int data_0x808
int data_0x80C
int data_0x810
int data_0x814
int data_0x818
int data_0x81C
int data_0x820
int data_0x824

◆ SceIoMount

struct SceIoMount

One entry returned by vfsGetMntList.

Pointer fields refer to kernel memory owned by SceIofilemgr. Do not free this memory. The pointers can become invalid after the mount is removed.

Data Fields
SceVfsMount * mnt Internal VFS mount.
int vsh_mount_id One of SceVshMountId, or -1 for a PFS mount.
char assign_name[0x20] Assigned Vita device name, such as ux0:.
SceUInt32 open_entry_count Number of open entries on the mount.
SceBool is_pfs_mount Nonzero when the mount uses PFS_GDSD_INF.
void * implementation_data Mount data specific to the filesystem implementation.

◆ SceIoMountInfo

struct SceIoMountInfo

FW 3.60 snapshot returned by vfsGetMntInfo.

Pointer fields refer to kernel memory owned by SceIofilemgr. Do not free this memory. The pointers can become invalid as mount state changes.

Data Fields
SceVfsMount * mnt Internal VFS mount.
int vsh_mount_id One of SceVshMountId.
char assign_name[0x20] Assigned Vita device name.
SceUInt32 open_entry_count Number of open entries on the mount.
SceUInt32 state Internal mount state.
SceUInt32 dev_minor Internal device-minor value.
SceUInt32 dev_major Internal device-major value.
SceVfsMount * mount_copy Same pointer as SceIoMountInfo::mnt.
SceVfsVnode * mountpoint Vnode on which this filesystem is mounted.
SceUID pool_uid Mount allocator UID.
SceUInt32 reference_count Internal mount reference count.
SceUInt32 vnode_count Number of vnodes belonging to the mount.
SceVfsVnode * vnode_list_head First vnode belonging to the mount.
SceVfsMount * mounted_on_list First mount attached to this mount.
SceVfsMount * mounted_on_list_prev Previous entry in the mounted-on list.
SceSize default_io_cache_size Default I/O-cache size.
void * implementation_data Mount data specific to the filesystem implementation.
void * fd_lock Internal file-descriptor lock object.
SceUID fd_lock_mutex File-descriptor lock mutex UID.
SceUID fd_lock_cond File-descriptor lock condition-variable UID.
SceUInt32 fd_lock_operation_state File-descriptor lock operation state.
SceUInt32 fd_lock_waiter_count Number of threads waiting for the file-descriptor lock.
void * mount_cc Internal mount cache-control object.
SceUInt32 mount_cc_dirty Cache-control dirty value.
SceUInt32 mount_cc_flag Value referenced by the cache-control flag pointer.
SceUID mount_cc_event_flag Cache-control event-flag UID.
SceVfsMountData ** mount_data_address Address of the mount-data pointer.
char unix_mount_path[0x400] Internal Unix mount path.
SceVfsMountData * mount_data Structure containing mount names and the VSH mount ID.
char filesystem[0x40] Filesystem implementation name.
char block_device_primary[0x40] Primary block-device name.
char block_device_secondary[0x40] Secondary block-device name.

◆ SceVfsChstatArgs

struct SceVfsChstatArgs
Data Fields
const char * path
const SceIoStat * stat
SceUInt32 cbit Bitwise OR of SCE_CST_* values.
SceBool allow_attribute_change Preserve the internal 0x10000 attribute-change bit.

◆ SceVfsChstatByFdArgs

struct SceVfsChstatByFdArgs
Data Fields
SceUID fd
const SceIoStat * stat
SceUInt32 cbit Bitwise OR of SCE_CST_* values.

◆ SceVfsCloseArgs

struct SceVfsCloseArgs
Data Fields
SceUID fd

◆ SceVfsIoctlArgs

struct SceVfsIoctlArgs
Data Fields
SceUID fd
int cmd
const void * indata Input buffer.
SceSize inlen Size of SceVfsIoctlArgs::indata.
void * outdata Output buffer.
SceSize outlen Size of SceVfsIoctlArgs::outdata.

◆ SceVfsOpenArgs

struct SceVfsOpenArgs
Data Fields
const char * filename
int flags Bitwise OR of SceIoMode values.
SceMode mode File access permissions.

◆ SceVfsPreadArgs

struct SceVfsPreadArgs
Data Fields
SceUID fd
void * data
SceSize size
SceUInt32 padding Alignment padding; ignored on FW 3.60.
SceOff offset

◆ SceVfsPwriteArgs

struct SceVfsPwriteArgs
Data Fields
SceUID fd
const void * data
SceSize size
SceUInt32 padding Alignment padding; ignored on FW 3.60.
SceOff offset

◆ SceVfsReadArgs

struct SceVfsReadArgs
Data Fields
SceUID fd
void * data
SceSize size

◆ SceVfsWriteArgs

struct SceVfsWriteArgs
Data Fields
SceUID fd
const void * data
SceSize size

◆ SceIoErrorEventInfo

struct SceIoErrorEventInfo

Result block in user memory, owned by the caller, for ksceIoCreateErrorEvent.

The reserved fields must be zero at creation. When the event is signaled, FW 3.60 writes the other fields and resets the reserved fields to zero.

Data Fields
SceUInt32 vsh_mount_id Mount ID that produced the error.
int error_code I/O error code.
SceUInt32 reserved1[2] Must be zero when creating the event.
int error_detail Additional error value supplied by the I/O subsystem.
SceUInt32 reserved2[2] Must be zero when creating the event.

Macro Definition Documentation

◆ SCE_S_ISLNK

#define SCE_S_ISLNK (   m)    (((m) & SCE_S_IFMT) == SCE_S_IFLNK)

◆ SCE_S_ISREG

#define SCE_S_ISREG (   m)    (((m) & SCE_S_IFMT) == SCE_S_IFREG)

◆ SCE_S_ISDIR

#define SCE_S_ISDIR (   m)    (((m) & SCE_S_IFMT) == SCE_S_IFDIR)

◆ SCE_SO_ISLNK

#define SCE_SO_ISLNK (   m)    (((m) & SCE_SO_IFMT) == SCE_SO_IFLNK)

◆ SCE_SO_ISREG

#define SCE_SO_ISREG (   m)    (((m) & SCE_SO_IFMT) == SCE_SO_IFREG)

◆ SCE_SO_ISDIR

#define SCE_SO_ISDIR (   m)    (((m) & SCE_SO_IFMT) == SCE_SO_IFDIR)

◆ SCE_CST_MODE

#define SCE_CST_MODE   0x0001

Defines for sceIoChstat and sceIoChstatByFd

◆ SCE_CST_SIZE

#define SCE_CST_SIZE   0x0004

◆ SCE_CST_CT

#define SCE_CST_CT   0x0008

◆ SCE_CST_AT

#define SCE_CST_AT   0x0010

◆ SCE_CST_MT

#define SCE_CST_MT   0x0020

◆ ksceIoGetGUIDFdList

#define ksceIoGetGUIDFdList   ksceIoGetGUIDFdListForDebugger

◆ ksceIoGetPUIDFdList

#define ksceIoGetPUIDFdList   ksceIoGetPUIDFdListForDebugger

Typedef Documentation

◆ SceIoPathMappingFunc

typedef int() SceIoPathMappingFunc(const char *path, ScePID pid, char *mapped_path, SceSize mapped_path_size)

Path-mapping callback installed by ksceIoSetPathMappingFunction.

Enumeration Type Documentation

◆ SceIoMode

enum SceIoMode
Enumerator
SCE_O_RDONLY 

Read-only.

SCE_O_WRONLY 

Write-only.

SCE_O_RDWR 

Read/Write.

SCE_O_NBLOCK 

Non blocking.

SCE_O_DIROPEN 

Internal use for sceIoDopen.

SCE_O_RDLOCK 

Read locked (non-shared)

SCE_O_WRLOCK 

Write locked (non-shared)

SCE_O_APPEND 

Append.

SCE_O_CREAT 

Create.

SCE_O_TRUNC 

Truncate.

SCE_O_EXCL 

Exclusive create.

SCE_O_SCAN 

Scan type.

SCE_O_RCOM 

Remote command entry.

SCE_O_NOBUF 

Number device buffer.

SCE_O_NOWAIT 

Asynchronous I/O.

SCE_O_FDEXCL 

Exclusive access.

SCE_O_PWLOCK 

Power control lock.

SCE_O_FGAMEDATA 

Gamedata access.

◆ SceIoSeekMode

Enumerator
SCE_SEEK_SET 

Starts from the begin of the file.

SCE_SEEK_CUR 

Starts from current position.

SCE_SEEK_END 

Starts from the end of the file.

◆ SceIoDevType

Enumerator
SCE_DEV_TYPE_NULL 

Dummy device.

SCE_DEV_TYPE_CHAR 

Character device.

SCE_DEV_TYPE_BLOCK 

Block device.

SCE_DEV_TYPE_FS 

File system device.

SCE_DEV_TYPE_ALIAS 

Alias name.

SCE_DEV_TYPE_MOUNTPT 

Mount point.

◆ SceIoAccessMode

Access modes for st_mode in SceIoStat.

Note
System always requires RW access. For safe homebrew system software will force system permission field to RW. For unsafe homebrew, you need to set it yourself ( mode | SCE_S_IWSYS | SCE_S_IRSYS)
Enumerator
SCE_S_IXUSR 

User execute permission.

SCE_S_IWUSR 

User write permission.

SCE_S_IRUSR 

User read permission.

SCE_S_IRWXU 

User access rights mask.

SCE_S_IXGRP 

Group execute permission. Ignored and reset to 0 by system.

SCE_S_IWGRP 

Group write permission. Ignored and reset to 0 by system.

SCE_S_IRGRP 

Group read permission. Ignored and reset to 0 by system.

SCE_S_IRWXG 

Group access rights mask. Ignored and reset to 0 by system.

SCE_S_IXSYS 

System execute permission.

SCE_S_IWSYS 

System write permission.

SCE_S_IRSYS 

System read permission.

SCE_S_IRWXS 

System access rights mask.

SCE_S_IXOTH 

Others execute permission. Deprecated, use SCE_S_IXSYS.

SCE_S_IWOTH 

Others write permission. Deprecated, use SCE_S_IXSYS.

SCE_S_IROTH 

Others read permission. Deprecated, use SCE_S_IXSYS.

SCE_S_IRWXO 

Others access rights mask. Deprecated, use SCE_S_IRWXS.

SCE_S_ISVTX 

Sticky. Deprecated.

SCE_S_ISGID 

Set GID. Deprecated.

SCE_S_ISUID 

Set UID. Deprecated.

SCE_S_IFDIR 

Directory.

SCE_S_IFREG 

Regular file.

SCE_S_IFLNK 

Symbolic link.

SCE_S_IFMT 

Format bits mask.

◆ SceIoFileMode

File modes, used for the st_attr parameter in SceIoStat.

Enumerator
SCE_SO_IXOTH 

Hidden execute permission.

SCE_SO_IWOTH 

Hidden write permission.

SCE_SO_IROTH 

Hidden read permission.

SCE_SO_IFLNK 

Symbolic link.

SCE_SO_IFDIR 

Directory.

SCE_SO_IFREG 

Regular file.

SCE_SO_IFMT 

Format mask.

◆ SceIoMountEvent

Event bits accepted by ksceIoCreateMountEvent.

Enumerator
SCE_IO_MOUNT_EVENT_MOUNTED 

A VFS mount operation succeeded.

SCE_IO_MOUNT_EVENT_UNMOUNTED 

A VFS unmount operation succeeded.

SCE_IO_MOUNT_EVENT_MOUNT_FAILED 

A VFS mount operation failed.

SCE_IO_MOUNT_EVENT_UNMOUNT_FAILED 

A VFS unmount operation failed.

SCE_IO_MOUNT_EVENT_DEVICE_ATTACHED 

The mount's backing device was attached.

SCE_IO_MOUNT_EVENT_DEVICE_DETACHED 

The mount's backing device was detached.

◆ SceIoErrorEvent

Event bits accepted by ksceIoCreateErrorEvent.

Enumerator
SCE_IO_ERROR_EVENT_OCCURRED 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/17]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceIoDevInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/17]

VITASDK_BUILD_ASSERT_EQ ( 0x58  ,
SceIoStat   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/17]

VITASDK_BUILD_ASSERT_EQ ( 0x160  ,
SceIoDirent   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/17]

VITASDK_BUILD_ASSERT_EQ ( 8  ,
SceIoFdInfo   
)

◆ ksceIoGetGUIDFdListForDebugger()

int ksceIoGetGUIDFdListForDebugger ( int  vis_level,
SceIoFdInfo *  dst,
SceSize  max_size,
SceSize *  res_size 
)

Get global file descriptor.

Parameters
[in]vis_level- unknown, set 5
[out]dst- fd list output
[in]max_size- dst array count
[out]res_size- result array count output
Returns
< 0 on error.

◆ ksceIoGetPUIDFdListForDebugger()

int ksceIoGetPUIDFdListForDebugger ( int  vis_level,
SceIoFdInfo *  dst,
SceSize  max_size,
SceSize *  res_size 
)

Get process file descriptor.

Parameters
[in]vis_level- unknown, set 5
[out]dst- fd list output
[in]max_size- dst array count
[out]res_size- result array count output
Returns
< 0 on error.

◆ VITASDK_BUILD_ASSERT_EQ() [5/17]

VITASDK_BUILD_ASSERT_EQ ( 0x828  ,
SceIofileInfo   
)

◆ ksceIoGetFileInfo()

int ksceIoGetFileInfo ( SceUID  fd,
SceUID  pid,
SceIofileInfo *  info 
)

Get file info.

Parameters
[in]fd- file descriptor
[in]pid- process id
[out]info- fd info output
Returns
< 0 on error.

◆ ksceIoMount()

int ksceIoMount ( int  id,
const char *  path,
int  permission,
int  a4,
int  a5,
int  a6 
)

Mounts a device.

Parameters
[in]idDevice to mount
[in]pathWhere to mount to
[in]permissionPermission flags
a4Unknown, set to 0
a5Unknown, set to 0
a6Unknown, set to 0
Returns
< 0 on error.

◆ ksceIoUmount()

int ksceIoUmount ( int  id,
int  a2,
int  a3,
int  a4 
)

Unmounts a device.

Parameters
[in]idDevice to unmount
[in]a2Unknown, set to 0
[in]a3Unknown, set to 0
[in]a4Unknown, set to 0
Returns
< 0 on error.

◆ ksceIoGetRemoteKPLSData()

int ksceIoGetRemoteKPLSData ( SceUID  pid,
void *  dst 
)

Get Remote Kernel Process Local Storage Data.

Parameters
[in]pid- The target process id
[out]dst- The pointer of RemoteKPLS output buffer. size is 0x1C.
Returns
< 0 on error.

◆ VITASDK_BUILD_ASSERT_EQ() [6/17]

VITASDK_BUILD_ASSERT_EQ ( 0x34  ,
SceIoMount   
)

◆ VITASDK_BUILD_ASSERT_EQ() [7/17]

VITASDK_BUILD_ASSERT_EQ ( 0x54C  ,
SceIoMountInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [8/17]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceVfsChstatArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [9/17]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceVfsChstatByFdArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [10/17]

VITASDK_BUILD_ASSERT_EQ ( 0x4  ,
SceVfsCloseArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [11/17]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceVfsIoctlArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [12/17]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceVfsOpenArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [13/17]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceVfsPreadArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [14/17]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceVfsPwriteArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [15/17]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceVfsReadArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [16/17]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceVfsWriteArgs   
)

◆ VITASDK_BUILD_ASSERT_EQ() [17/17]

VITASDK_BUILD_ASSERT_EQ ( 0x1C  ,
SceIoErrorEventInfo   
)

◆ ksceIoChstatForVshbridge()

int ksceIoChstatForVshbridge ( const char *  name,
const SceIoStat *  stat,
unsigned int  cbit 
)

Change file status for VshBridge, allowing the internal attribute-change bit.

◆ ksceIoClearErrorEvent()

int ksceIoClearErrorEvent ( SceUID  event_uid)

Clear an error event's one-shot notification latch.

◆ ksceIoCreateErrorEvent()

SceUID ksceIoCreateErrorEvent ( int  vsh_mount_id,
SceUInt32  event_bits,
SceIoErrorEventInfo *  event_info 
)

Create an I/O error event.

Parameters
[in]vsh_mount_id- Nonzero mount ID identifying a registered VSH mount.
[in]event_bits- Must be SCE_IO_ERROR_EVENT_OCCURRED.
[in,out]event_info- Required writable user-memory block. It must remain valid until ksceIoDeleteErrorEvent is called.
Returns
Kernel event GUID on success, or a negative error code.

◆ ksceIoCreateMountEvent()

SceUID ksceIoCreateMountEvent ( int  vsh_mount_id,
SceUInt32  event_bits 
)

Create a mount event.

Parameters
[in]vsh_mount_id- Nonzero mount ID identifying a registered VSH mount.
[in]event_bits- Bitwise OR of SceIoMountEvent values. Bits outside 0x333 are discarded; at least one accepted bit is required.
Returns
Kernel event GUID on success, or a negative error code.

◆ ksceIoDeleteErrorEvent()

int ksceIoDeleteErrorEvent ( SceUID  event_uid)

Delete an I/O error event by kernel GUID.

◆ ksceIoDeleteMountEvent()

int ksceIoDeleteMountEvent ( SceUID  event_uid)

Delete a mount event by kernel GUID.

◆ ksceIoDreadForVshbridge()

int ksceIoDreadForVshbridge ( SceUID  fd,
SceIoDirent *  dir 
)

Read a directory entry for VshBridge, preserving SceIoStat::st_attr.

◆ ksceIoGetMediaType()

int ksceIoGetMediaType ( ScePID  pid,
const char *  path,
int  ignored,
SceUInt32 *  media_type 
)

Get the media type for a path.

If a path-mapping callback is registered, the path is remapped for the specified process before its media type is queried. If the media-type query fails, the function writes the fallback media type 8 and returns success.

Parameters
[in]pid- Process whose path mapping is used.
[in]path- Path to query.
[in]ignored- Unused argument; ignored on FW 3.60.
[out]media_type- Receives a 32-bit media-type value.
Returns
The non-negative media-type query result, or a negative error from path remapping or temporary-buffer allocation.

◆ ksceIoGetThreadDefaultPriorityForSystem()

int ksceIoGetThreadDefaultPriorityForSystem ( void  )

Return the current thread's default I/O priority using the system-priority view.

◆ ksceIoGetstatForVshbridge()

int ksceIoGetstatForVshbridge ( const char *  name,
SceIoStat *  stat 
)

Get file status for VshBridge, preserving SceIoStat::st_attr.

◆ ksceIoIoctl()

int ksceIoIoctl ( SceUID  fd,
int  cmd,
const void *  argp,
SceSize  arglen,
void *  bufp,
SceSize  buflen 
)

Perform an ioctl using kernel buffers.

◆ ksceIoOpenForPid()

SceUID ksceIoOpenForPid ( ScePID  pid,
const char *  filename,
int  flags,
SceMode  mode 
)

Open a path after resolving overlays in another process's namespace.

◆ ksceIoSetPathMappingFunction()

int ksceIoSetPathMappingFunction ( SceIoPathMappingFunc *  func)

Install or remove the process-path mapping callback.

Only one callback can be installed. Passing NULL removes the current callback; attempting to replace a non-NULL callback directly fails.

◆ ksceIoSyncByFd2()

int ksceIoSyncByFd2 ( SceUID  fd,
int  flags 
)

Synchronize a file descriptor.

◆ vfsAllocateFileDummy()

SceUID vfsAllocateFileDummy ( int  flags,
SceBool  is_dir,
const char *  name 
)

Allocate a dummy internal VFS file object named name.

◆ vfsChstat()

int vfsChstat ( SceVfsChstatArgs *  args)

Change file status through VFS before returning.

◆ vfsChstatByFd()

int vfsChstatByFd ( SceVfsChstatByFdArgs *  args)

Change file status by descriptor through VFS before returning.

◆ vfsClose()

int vfsClose ( SceVfsCloseArgs *  args)

Close a file through VFS before returning.

◆ vfsGetMntInfo()

int vfsGetMntInfo ( SceVfsMount *  mnt,
SceIoMountInfo *  info 
)

Get a snapshot of one mounted filesystem.

Parameters
[in]mnt- Mount pointer previously returned by vfsGetMntList.
[out]info- Receives the FW 3.60 mount snapshot.
Returns
0 on success, or a negative error when mnt is not mounted.

◆ vfsGetMntList()

int vfsGetMntList ( SceIoMount *  mounts,
SceSize  capacity,
SceSize *  count 
)

List mounted filesystems.

Passing NULL for mounts returns the current mount count directly. With a non-NULL array, at most capacity entries are written, count receives the number written, and the function returns 0.

◆ vfsIoctl()

int vfsIoctl ( SceVfsIoctlArgs *  args)

Perform an ioctl through VFS before returning.

◆ vfsOpen()

SceUID vfsOpen ( SceVfsOpenArgs *  args)

Open a file through VFS before returning.

◆ vfsPread()

SceSSize vfsPread ( SceVfsPreadArgs *  args)

Read at the specified file offset before returning.

◆ vfsPwrite()

SceSSize vfsPwrite ( SceVfsPwriteArgs *  args)

Write at the specified file offset before returning.

◆ vfsRead()

SceSSize vfsRead ( SceVfsReadArgs *  args)

Read from a file before returning.

◆ vfsWrite()

SceSSize vfsWrite ( SceVfsWriteArgs *  args)

Write to a file before returning.

Variable Documentation

◆ max_size

SceOff SceIoDevInfo::max_size

◆ free_size

SceOff SceIoDevInfo::free_size

◆ cluster_size

SceSize SceIoDevInfo::cluster_size

◆ unk

void* SceIoDevInfo::unk

◆ st_mode

SceMode SceIoStat::st_mode

One or more SceIoAccessMode.

◆ st_attr

unsigned int SceIoStat::st_attr

One or more SceIoFileMode.

◆ st_size

SceOff SceIoStat::st_size

Size of the file in bytes.

◆ st_ctime

SceDateTime SceIoStat::st_ctime

Creation time.

◆ st_atime

SceDateTime SceIoStat::st_atime

Last access time.

◆ st_mtime

SceDateTime SceIoStat::st_mtime

Last modification time.

◆ st_private

unsigned int SceIoStat::st_private[6]

Device-specific data.

◆ d_stat

SceIoStat SceIoDirent::d_stat

File status.

◆ d_name

char SceIoDirent::d_name[256]

File name.

◆ d_private

void* SceIoDirent::d_private

Device-specific data.

◆ dummy

int SceIoDirent::dummy

Dummy data.

◆ fd [1/8]

SceUID SceIoFdInfo::fd

◆ pid [1/2]

SceUID SceIoFdInfo::pid

◆ path [1/2]

char SceIofileInfo::path[0x400]

◆ path2

char SceIofileInfo::path2[0x400]

◆ pid [2/2]

SceUID SceIofileInfo::pid

◆ data_0x804

int SceIofileInfo::data_0x804

◆ data_0x808

int SceIofileInfo::data_0x808

◆ data_0x80C

int SceIofileInfo::data_0x80C

◆ data_0x810

int SceIofileInfo::data_0x810

◆ data_0x814

int SceIofileInfo::data_0x814

◆ data_0x818

int SceIofileInfo::data_0x818

◆ data_0x81C

int SceIofileInfo::data_0x81C

◆ data_0x820

int SceIofileInfo::data_0x820

◆ data_0x824

int SceIofileInfo::data_0x824

◆ mnt [1/2]

SceVfsMount* SceIoMount::mnt

Internal VFS mount.

◆ vsh_mount_id [1/3]

int SceIoMount::vsh_mount_id

One of SceVshMountId, or -1 for a PFS mount.

◆ assign_name [1/2]

char SceIoMount::assign_name[0x20]

Assigned Vita device name, such as ux0:.

◆ open_entry_count [1/2]

SceUInt32 SceIoMount::open_entry_count

Number of open entries on the mount.

◆ is_pfs_mount

SceBool SceIoMount::is_pfs_mount

Nonzero when the mount uses PFS_GDSD_INF.

◆ implementation_data [1/2]

void* SceIoMount::implementation_data

Mount data specific to the filesystem implementation.

◆ mnt [2/2]

SceVfsMount* SceIoMountInfo::mnt

Internal VFS mount.

◆ vsh_mount_id [2/3]

int SceIoMountInfo::vsh_mount_id

One of SceVshMountId.

◆ assign_name [2/2]

char SceIoMountInfo::assign_name[0x20]

Assigned Vita device name.

◆ open_entry_count [2/2]

SceUInt32 SceIoMountInfo::open_entry_count

Number of open entries on the mount.

◆ state

SceUInt32 SceIoMountInfo::state

Internal mount state.

◆ dev_minor

SceUInt32 SceIoMountInfo::dev_minor

Internal device-minor value.

◆ dev_major

SceUInt32 SceIoMountInfo::dev_major

Internal device-major value.

◆ mount_copy

SceVfsMount* SceIoMountInfo::mount_copy

Same pointer as SceIoMountInfo::mnt.

◆ mountpoint

SceVfsVnode* SceIoMountInfo::mountpoint

Vnode on which this filesystem is mounted.

◆ pool_uid

SceUID SceIoMountInfo::pool_uid

Mount allocator UID.

◆ reference_count

SceUInt32 SceIoMountInfo::reference_count

Internal mount reference count.

◆ vnode_count

SceUInt32 SceIoMountInfo::vnode_count

Number of vnodes belonging to the mount.

◆ vnode_list_head

SceVfsVnode* SceIoMountInfo::vnode_list_head

First vnode belonging to the mount.

◆ mounted_on_list

SceVfsMount* SceIoMountInfo::mounted_on_list

First mount attached to this mount.

◆ mounted_on_list_prev

SceVfsMount* SceIoMountInfo::mounted_on_list_prev

Previous entry in the mounted-on list.

◆ default_io_cache_size

SceSize SceIoMountInfo::default_io_cache_size

Default I/O-cache size.

◆ implementation_data [2/2]

void* SceIoMountInfo::implementation_data

Mount data specific to the filesystem implementation.

◆ fd_lock

void* SceIoMountInfo::fd_lock

Internal file-descriptor lock object.

◆ fd_lock_mutex

SceUID SceIoMountInfo::fd_lock_mutex

File-descriptor lock mutex UID.

◆ fd_lock_cond

SceUID SceIoMountInfo::fd_lock_cond

File-descriptor lock condition-variable UID.

◆ fd_lock_operation_state

SceUInt32 SceIoMountInfo::fd_lock_operation_state

File-descriptor lock operation state.

◆ fd_lock_waiter_count

SceUInt32 SceIoMountInfo::fd_lock_waiter_count

Number of threads waiting for the file-descriptor lock.

◆ mount_cc

void* SceIoMountInfo::mount_cc

Internal mount cache-control object.

◆ mount_cc_dirty

SceUInt32 SceIoMountInfo::mount_cc_dirty

Cache-control dirty value.

◆ mount_cc_flag

SceUInt32 SceIoMountInfo::mount_cc_flag

Value referenced by the cache-control flag pointer.

◆ mount_cc_event_flag

SceUID SceIoMountInfo::mount_cc_event_flag

Cache-control event-flag UID.

◆ mount_data_address

SceVfsMountData** SceIoMountInfo::mount_data_address

Address of the mount-data pointer.

◆ unix_mount_path

char SceIoMountInfo::unix_mount_path[0x400]

Internal Unix mount path.

◆ mount_data

SceVfsMountData* SceIoMountInfo::mount_data

Structure containing mount names and the VSH mount ID.

◆ filesystem

char SceIoMountInfo::filesystem[0x40]

Filesystem implementation name.

◆ block_device_primary

char SceIoMountInfo::block_device_primary[0x40]

Primary block-device name.

◆ block_device_secondary

char SceIoMountInfo::block_device_secondary[0x40]

Secondary block-device name.

◆ path [2/2]

const char* SceVfsChstatArgs::path

◆ stat [1/2]

const SceIoStat* SceVfsChstatArgs::stat

◆ cbit [1/2]

SceUInt32 SceVfsChstatArgs::cbit

Bitwise OR of SCE_CST_* values.

◆ allow_attribute_change

SceBool SceVfsChstatArgs::allow_attribute_change

Preserve the internal 0x10000 attribute-change bit.

◆ fd [2/8]

SceUID SceVfsChstatByFdArgs::fd

◆ stat [2/2]

const SceIoStat* SceVfsChstatByFdArgs::stat

◆ cbit [2/2]

SceUInt32 SceVfsChstatByFdArgs::cbit

Bitwise OR of SCE_CST_* values.

◆ fd [3/8]

SceUID SceVfsCloseArgs::fd

◆ fd [4/8]

SceUID SceVfsIoctlArgs::fd

◆ cmd

int SceVfsIoctlArgs::cmd

◆ indata

const void* SceVfsIoctlArgs::indata

Input buffer.

◆ inlen

SceSize SceVfsIoctlArgs::inlen

◆ outdata

void* SceVfsIoctlArgs::outdata

Output buffer.

◆ outlen

SceSize SceVfsIoctlArgs::outlen

◆ filename

const char* SceVfsOpenArgs::filename

◆ flags

int SceVfsOpenArgs::flags

Bitwise OR of SceIoMode values.

◆ mode

SceMode SceVfsOpenArgs::mode

File access permissions.

◆ fd [5/8]

SceUID SceVfsPreadArgs::fd

◆ data [1/4]

void* SceVfsPreadArgs::data

◆ size [1/4]

SceSize SceVfsPreadArgs::size

◆ padding [1/2]

SceUInt32 SceVfsPreadArgs::padding

Alignment padding; ignored on FW 3.60.

◆ offset [1/2]

SceOff SceVfsPreadArgs::offset

◆ fd [6/8]

SceUID SceVfsPwriteArgs::fd

◆ data [2/4]

const void* SceVfsPwriteArgs::data

◆ size [2/4]

SceSize SceVfsPwriteArgs::size

◆ padding [2/2]

SceUInt32 SceVfsPwriteArgs::padding

Alignment padding; ignored on FW 3.60.

◆ offset [2/2]

SceOff SceVfsPwriteArgs::offset

◆ fd [7/8]

SceUID SceVfsReadArgs::fd

◆ data [3/4]

void* SceVfsReadArgs::data

◆ size [3/4]

SceSize SceVfsReadArgs::size

◆ fd [8/8]

SceUID SceVfsWriteArgs::fd

◆ data [4/4]

const void* SceVfsWriteArgs::data

◆ size [4/4]

SceSize SceVfsWriteArgs::size

◆ vsh_mount_id [3/3]

SceUInt32 SceIoErrorEventInfo::vsh_mount_id

Mount ID that produced the error.

◆ error_code

int SceIoErrorEventInfo::error_code

I/O error code.

◆ reserved1

SceUInt32 SceIoErrorEventInfo::reserved1[2]

Must be zero when creating the event.

◆ error_detail

int SceIoErrorEventInfo::error_detail

Additional error value supplied by the I/O subsystem.

◆ reserved2

SceUInt32 SceIoErrorEventInfo::reserved2[2]

Must be zero when creating the event.