SceIofilemgr

SceIofilemgr is the primary interface for file IO. Read File Management for more information on file IO.

Module
This module exists only in non-secure world. The SELF can be found in.

Mount Points
This table is stored in data segment of SceIofilemgr as array of  elements.

When sceVfsMount is executed it finds vfs_add_data element by filesystem string and then selects appropriate mount scenario by devMinor and devMajor.


 * means random numeric string of length 13

See SceSdstor for "sdstor0:" Block Device.

VFS Implementation
Information can be found on separate page VFS Implementation

note
Max vfs node number is 0x1000.

sceVopLookupForDriver
Temp name was sceVfsNodeInitializePartitionForDriver.

sceVopCloseForDriver
In logs it is sceVopClsoeForDriver.

sceVopTrashForDriver
This is a guessed name.

Move target node entry file/directory to.

sceVopFchstatForDriver
Temp name was sceVopChstatByFd.

sceIoMountForDriver
operation index 1 in

sceIoUmountForDriver
operation index 2 in

scePfsMgrVfsMountForDriver
operation index 3 in

scePfsMgrVfsUmountForDriver
operation index 4 in

sceVfsLockVnodeForDriver
Temp name was sceVfsNodeWaitEventFlagForDriver.

calls  using   from

sceVfsUnlockVnodeForDriver
Temp name was sceVfsNodeSetEventFlagForDriver.

calls  using   from

sceVfsAddVfsForDriver
Used by SceSdstor, SceTty2uart, SceKernelBlueScreenOfDeath

sceVfsAllocateFileForDriver
Creates a  object and returns UID and pointer to created object.

sceVfsFreeFileForDriver
Free a file created with sceVfsAllocateFileForDriver.

sceVfsOpenForDriver
Temp name was

thread callback for

sceVfsCloseForDriver
Temp name was

thread callback for

sceVfsReadForDriver
Temp name was

thread callback for

sceVfsWriteForDriver
Temp name was

thread callback for

sceVfsIoctlForDriver
Temp name was

thread callback for

sceVfsChstatForDriver
Temp name was

thread callback for

sceVfsChstatByFdForDriver
Temp name was

thread callback for

sceVfsPreadForDriver
Temp name was

thread callback for

sceVfsPwriteForDriver
Temp name was

thread callback for

sceIoRmdevForDriver
Like sceIoRemove?

The difference with sceIoRemove is that sceIoRmdev seems to remove the entry to be deleted directly without moving it to SceIoTrash.

sceIoDelDrvForDriver
Example: "tty"

sceIoDreadForDriver
Call interface is same as.

sceIoDreadForVshbridgeForDriver
Temp name was sceIoDreadForDriver_2. Derived from _vshIoDread

Implementation is completely the same as sceIoDreadForDriver. The only difference is that st_attr in SceIoStat is not set.

sceIoWriteForDriver
Call interface is same as

sceIoDopenForDriver
Call interface is same as

sceIoLseekForDriver
Call interface is same as

sceIoOpenForDriver
Call interface is same as sceIoOpen.

If the process is game or non-game, the `SCE_O_NOBUF` flag will be ignored.

sceIoOpenForPidForDriver
This is a wrapper for sceIoOpenForDriver.

Pid is used for.

sceIoChstatForDriver
Call interface is same as

sceIoChstatForVshbridgeForDriver
Temp name was sceIoChstatForDriver_2. Derived from _vshIoChstat

Implementation is completely the same as. The only difference is that (bits = bits & (~0x10000)) operation is not applied.

sceIoGetstatForDriver
Call interface is same as.

sceIoGetstatForVshbridgeForDriver
Temp name was sceIoGetstatForDriver_2. Derived from _vshIoGetstat

Implementation is completely the same as sceIoGetstatForDriver. The only difference is that st_attr in SceIoStat *buf is not set.

sceIoMkdirForDriver
Call interface is same as

sceIoReadForDriver
Call interface is same as

sceIoCloseForDriver
Call interface is same as

sceIoRenameForDriver
Call interface is same as

sceIoRemoveForDriver
Call interface is same as

sceIoCancelForDriver
Derived from

sceIoChstatAsyncForDriver
Derived from

sceIoChstatByFdAsyncForDriver
Derived from

sceIoChstatByFdForDriver
Derived from

sceIoCloseAsyncForDriver
Derived from

sceIoDevctlAsyncForDriver
Derived from

sceIoDevctlForDriver
Derived from

sceIoDcloseForDriver
Derived from

sceIoFlockForDriver
Derived from

sceIoGetstatByFdAsyncForDriver
Derived from

sceIoGetstatByFdForDriver
Derived from

sceIoGetstatAsyncForDriver
Derived from

sceIoIoctlAsyncForDriver
Derived from

sceIoIoctlForDriver
Derived from

sceIoLseekAsyncForDriver
Derived from

sceIoMkdirAsyncForDriver
Derived from

sceIoOpenAsyncForDriver
Derived from

sceIoPreadAsyncForDriver
Derived from

sceIoPreadForDriver
Derived from

sceIoPwriteAsyncForDriver
Derived from

sceIoPwriteForDriver
Derived from

sceIoReadAsyncForDriver
Derived from

sceIoRemoveAsyncForDriver
Derived from

sceIoRenameAsyncForDriver
Derived from

sceIoRmdirAsyncForDriver
Derived from

sceIoRmdirForDriver
Derived from

sceIoSyncByFdAsyncForDriver
Derived from

not_sceIoSyncByFd_maybe_SyncByFd2ForDriver
This function is not sceIoSyncByFdForDriver.

Derived from

sceIoSyncAsyncForDriver
Derived from

sceIoSyncForDriver
Derived from

sceIoWriteAsyncForDriver
Derived from

sceIoCreateMountEventForDriver
Derived from vshIoCreateMountEvent

sceIoCreateErrorEventForDriver
Derived from vshIoCreateErrorEvent

sceIoClearErrorEventForDriver
Derived from vshIoClearErrorEvent

sceIoDeleteMountEventForDriver
Derived from vshIoDeleteMountEvent

sceIoDeleteErrorEventForDriver
Derived from vshIoDeleteErrorEvent

sceIoSetMountEventForDriver
Temp name was sceIoInvokeMountEventForDriver.

sceIoSetPathMappingFunctionForDriver
Used by SceAppMgr.

Sets a callback function that does path mapping:


 * function tries to OverlayResolveSync input path
 * checks that it is not a PD path (Pseudo Drive mount point aquired by ScePfsMgr)
 * takes beginning of path until symbol ":"
 * tries to do a lookup by that path copy in data segment global 0x3470C  item array
 * if item is found then  from   item is copied to
 * in any other case OverlayResolveSync result path is copied to

sceIoGetMediaTypeForDriver
Was wrongly named sceIoGetPathIdExForDriver.

May also call callback function set by sceIoSetPathMappingFunctionForDriver.

This callback function does path mapping since result in result_path is passed to sceSblACMgrGetMediaTypeForKernel.

create_SceUIDVfsFileClass
creates instance of SceUIDVfsFileClass using

sceIoGetRemoteKPLSDataForDriver
This function is temp name.

sceIoSetErrorEventForDriver
Previously (wrongfully) called sceIoGetGUIDErrorEventListForDriver.

SceIofilemgrForDriver_12F8D58E
get some value

SceIofilemgrForDriver_15C17487
tell some

SceIofilemgrForDriver_2EFDFA12
set path by flags?

SceIofilemgrForDriver_3675ECB9
some node op. dec ctr.

SceIofilemgrForDriver_3A79FAC9
delete fd by flags

SceIofilemgrForDriver_6BEEDDB4
setting some to fd of dir entry

SceIofilemgrForDriver_A7020B0D
big function

SceIofilemgrForDriver_B499287E
delete some puid from a1

sceIoGetMountInfoForDriver
This is guessed name

sceIoGetMountVectorForDriver
This is guessed name

SceIofilemgrForDriver_C468B5EF
some thread op

SceIofilemgrForDriver_C722DF35
some node op. inc ctr.

SceIofilemgrForDriver_D6AB5E4B
some node op