SceIofilemgr: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
(→‎vfsBuffCacheCtlForDriver: Add parameter names from 0.990 iofilemgr)
 
(342 intermediate revisions by 8 users not shown)
Line 2: Line 2:


== Module ==
== Module ==
This module exists in only in non-secure world. The SELF can be found in <code>os0:kd/iofilemgr.skprx</code>.


=== Known NIDs ===
This module exists only in non-secure world. The SELF can be found in <code>os0:kd/iofilemgr.skprx</code>.
 
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! Name !! World !! Privilege !! NID
! Version !! World !! Privilege
|-
|-
| 1.69 || SceIofilemgr || Non-secure || Kernel || 0x3E244C17
| 0.990-3.60 || Non-secure || Kernel
|-
| 3.60 || SceIofilemgr || ? || Kernel || 0x9642948C
|}
|}


== Libraries ==
== Libraries ==
This module is accessible by usermode.


=== Known NIDs ===
=== Known NIDs ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! Name !! World !! Visibility !! NID
! Version !! Name !! World !! Visibility !! NID
|-
|-
| 1.69 || [[SceIofilemgr#SceIofilemgrForDriver|SceIofilemgrForDriver]] || Non-secure || Kernel || 0x40FD29C7
| 1.69-3.60 || [[SceIofilemgr#SceIofilemgrForDriver|SceIofilemgrForDriver]] || Non-secure || Kernel || 0x40FD29C7
|-
|-
| 3.60 || [[SceIofilemgr#SceIofilemgrForDriver|SceIofilemgrForDriver]] || ? || Kernel || 0x40FD29C7
| 1.69-3.60 || [[SceIofilemgr#SceIofilemgr|SceIofilemgr]] || Non-secure || User || 0xF2FF276E
|-
| 1.69 || [[SceIofilemgr#SceIofilemgr|SceIofilemgr]] || Non-secure || User || 0xF2FF276E
|-
| 3.60 || [[SceIofilemgr#SceIofilemgr|SceIofilemgr]] || ? || User || 0xF2FF276E
|}
|}


== Mount Points ==
== Debug callback type ==


This table is stored in data segment of SceIofilemgr as array of <code>vfs_mount_point_info</code> elements.
{| class="wikitable"
 
|-
When sceVfsMount is executed it finds vfs_add_data element by filesystem string and then selects appropriate mount scenario by devMinor and devMajor.
! Type !! When
 
|-
*<code><rnd></code> means random numeric string of length 13
| 0x0 || Scheduled sceIoOpen start
 
|-
{| class="wikitable sortable"
| 0x1 || Scheduled sceIoOpen end
|-
| 0x2 || sceVopOpen start
|-
| 0x3 || sceVopOpen end
|-
| 0x4 || Scheduled sceIoClose start
|-
| 0x5 || Scheduled sceIoClose end
|-
| 0x6 || sceVopClose start
|-
| 0x7 || sceVopClose end
|-
| 0x8 || Scheduled sceIoRead start
|-
|-
! Unix Mount || Dev Major || Dev Minor || Filesystem || Vita Mount || Block Device || VSH Mount Id
| 0x9 || Scheduled sceIoRead end
|-
|-
| /tty || 0x4000020 || 0x6003 || dummy_ttyp_dev_fs || tty || dummy_ttyp_dev_fs || 0x0
| 0xA || sceVopRead start
|-
|-
| /dev || 0x10 || 0x3 || sdstor_dev_fs || sdstor0: || sd || 0x1
| 0xB || sceVopRead end
|-
|-
| /md || 0x10 || 0x2003 || md_dev_fs || md0: || md || 0x2
| 0xC || Scheduled sceIoWrite start
|-
|-
| /sd/exfat || 0x2030001 || 0x30002 || exfat || sd0: || sdstor0:ext-pp-act-a, sdstor0:ext-lp-act-entire || 0x100
| 0xD || Scheduled sceIoWrite end
|-
|-
| /os/exfat || 0x1000001 || 0x1002 || exfat || os0: || sdstor0:int-lp-act-os || 0x200
| 0xE || sceVopWrite start
|-
|-
| /vs/exfat || 0x1000001 || 0x1002 || exfat || vs0: || sdstor0:int-lp-ign-vsh || 0x300
| 0xF || sceVopWrite end
|-
|-
| /vd/exfat || 0x1000001 || 0x10002 || exfat || vd0: || sdstor0:int-lp-ign-vshdata || 0x400
| 0x10 || Scheduled sceIoPread start
|-
|-
| /tm/exfat || 0x1000001 || 0x10002 || exfat || tm0: || sdstor0:int-lp-ign-vtrm || 0x500
| 0x11 || Scheduled sceIoPread end
|-
|-
| /ur/exfat || 0x1000001 || 0x50002 || exfat || ur0: || sdstor0:int-lp-ign-user || 0x600
| 0x12 || sceVopPread start
|-
|-
| /ud/exfat || 0x1000001 || 0x10002 || exfat || ud0: || sdstor0:int-lp-ign-updater || 0x700
| 0x13 || sceVopPread end
|-
|-
| /ux/exfat || 0x2020001 || 0x30002 || exfat || ux0: || sdstor0:xmc-lp-ign-userext / sdstor0:int-lp-ign-userext || 0x800
| 0x14 || Scheduled sceIoPwrite start
|-
|-
| /gro/exfat || 0x2010001 || 0x21002 || exfat || gro0: || sdstor0:gcd-lp-ign-gamero || 0x900
| 0x15 || Scheduled sceIoPwrite end
|-
|-
| /grw/exfat || 0x2010001 || 0x20002 || exfat || grw0: || sdstor0:gcd-lp-ign-gamerw || 0xA00
| 0x16 || sceVopPwrite start
|-
|-
| /sa/exfat || 0x1000001 || 0x1002 || exfat || sa0: || sdstor0:int-lp-ign-sysdata || 0xB00
| 0x17 || sceVopPwrite end
|-
|-
| /pd/exfat || 0x1000001 || 0x1002 || exfat || pd0: || sdstor0:int-lp-ign-pidata || 0xC00
| 0x18 || Scheduled sceIoLseek start
|-
|-
| /imc/exfat || 0x2020001 || 0x30002 || exfat || imc0: || sdstor0:int-lp-ign-userext || 0xD00
| 0x19 || Scheduled sceIoLseek end
|-
|-
| /xmc/exfat || 0x2020001 || 0x30002 || exfat || xmc0: || sdstor0:xmc-lp-ign-userext || 0xE00
| 0x1A || sceVopLseek start
|-
|-
| /uma/exfat || 0x2030001 || 0x2 || exfat || uma0: || sdstor0:uma-pp-act-a, sdstor0:uma-lp-act-entire || 0xF00
| 0x1B || sceVopLseek end
|-
|-
| /lma/exfat || 0x1 || 0x5 || exfat || lma0: || / || 0x10000
| 0x1C || Scheduled sceIoMkdir start
|-
|-
| /lmb/exfat || 0x1 || 0x5 || exfat || lmb0: || / || 0x20000
| 0x1D || Scheduled sceIoMkdir end
|-
|-
| /mfa/exfat || 0x1 || 0x5 || exfat || mfa0: || / || 0x50000
| 0x1E || sceVopMkdir start
|-
|-
| /mfb/exfat || 0x1 || 0x5 || exfat || mfb0: || / || 0x60000
| 0x1F || sceVopMkdir end
|-
|-
| /PD<rnd> || 0x3 || 0x1001 || PFS_GDSD_INF || PD<rnd>0 ||  || 0x0
| 0x20 || Scheduled sceIoRmdir start
|}
 
== Block Device Naming Rules ==
 
First level prefix
 
*int
*ext
*gcd
*mcd
*uma
*usd
*xmc
 
Second level prefix
 
*lp
*pp
 
Third level prefix
 
*ina
*act
*ign
 
Forth level prefix
 
*unused
*idstor
*sloader
*os
*vsh
*vshdata
*vtrm
*user
*userext
*gamero
*gamerw
*updater
*sysdata
*mediaid
*pidata
*entire
 
== Partition Block Devices ==
 
Each partition has numeric alias (string) that looks like to be used to reference the partition.
 
Numeric names most likely follow order of partitions in MBR.
 
To access device node use <code>/dev</code> prefix (like <code>/dev/gcd-lp-ign-gamero</code>).
 
In total there can be 16 aliases from 0 to 15 per physical device (eMMC, Game Card, Memory Card). Alias 16 is hardcoded and is called <code>entire</code>.
 
Aliases 0-15 correspond to eMMC.
 
Aliases 100-115 correspond to Game Card.
 
Aliases 200-215 correspond to Memory Card.
 
{| class="wikitable"
|-
|-
! block device !! numeric name
| 0x21 || Scheduled sceIoRmdir end
|-
|-
| int-lp-ign-idstor (need to confirm) || 000
| 0x22 || sceVopRmdir start
|-
|-
| int-lp-ign-sloader (need to confirm) || 001
| 0x23 || sceVopRmdir end
|-
|-
| - || 002
| 0x24 || Scheduled sceIoGetstat start
|-
|-
| int-lp-act-os || 003
| 0x25 || Scheduled sceIoGetstat end
|-
|-
| - || 004
| 0x26 || sceVopGetstat start
|-
|-
| int-lp-ign-sysdata || 005
| 0x27 || sceVopGetstat end
|-
|-
| int-lp-ign-vtrm || 006
| 0x28 || Scheduled sceIoRemove start
|-
|-
| int-lp-ign-vsh || 007
| 0x29 || Scheduled sceIoRemove end
|-
|-
| int-lp-ign-vshdata || 008
| 0x2A || sceVopRemove start
|-
|-
| int-lp-ign-updater || 009
| 0x2B || sceVopRemove end
|-
|-
| int-lp-ign-pidata || 010
| 0x2C || Scheduled sceIoRename start
|-
|-
| int-lp-ign-user || 011
| 0x2D || Scheduled sceIoRename end
|-
|-
| int-lp-ign-userext || 012
| 0x2E || sceVopRename start
|-
|-
| int-lp-act-entire || 016
| 0x2F || sceVopRename end
|-
|-
| gcd-lp-ign-gamero, gcd-lp-act-mediaid (need to confirm) || 100
| 0x30 || -
|-
|-
| gcd-lp-ign-gamerw (need to confirm) || 101
| 0x31 || -
|-
|-
| ext-lp-act-entire (need to confirm) || 116
| 0x32 || Scheduled sceIoDopen start
|-
|-
| mcd-lp-act-mediaid || 200
| 0x33 || Scheduled sceIoDopen end
|-
|-
| - || 201
| 0x34 || sceVopDopen start
|-
|-
| mcd-lp-act-entire (need to confirm) || 216
| 0x35 || sceVopDopen end
|-
|-
|}
| 0x36 || Scheduled sceIoDread start
 
== VFS Nodes ==
{| class="wikitable"
|-
|-
! Module !! Name !! Comment
| 0x37 || Scheduled sceIoDread end
|-
|-
| [[SceSdstor|SceSdstor]] || sdstor_dev_fs ||
| 0x38 || sceVopDread start
|-
|-
| [[SceExfatfs|SceExfatfs]] || exfat ||
| 0x39 || sceVopDread end
|-
|-
| [[SceIofilemgr|SceIofilemgr]] || dummy_ttyp_dev_fs ||
| 0x3A || Scheduled sceIoDclose start
|-
|-
| [[ScePfsMgr|ScePfsMgr]] || PFS_REDIRECT_INF || Redirect Pseudo Drive.
| 0x3B || Scheduled sceIoDclose end
|-
|-
| [[ScePfsMgr|ScePfsMgr]] || PFS_GDSD_INF || Gamedata/Savedata Pseudo Drive.
| 0x3C || sceVopDclose start
|-
|-
| [[ScePfsMgr|ScePfsMgr]] || PFS_AC_INF || AC Pseudo Drive.
| 0x3D || sceVopDclose end
|-
|-
|}
| 0x3E || Scheduled sceIoChstat start
 
== VFS Operations ==
 
*implemented operation is marked as <code>implemented</code>
*not implemented is marked as <code> </code>
*return 0 placeholder is marked as <code>0</code>
*return error is marked with corresponding error name
 
{| class="wikitable"
|-
! Function !! sdstor_dev_fs !! exfat !! dummy_ttyp_dev_fs !! PFS_REDIRECT_INF !! PFS_GDSD_INF !! PFS_AC_INF
|-
| 1 || implemented || implemented || implemented || implemented || implemented || implemented
|-
| 2 || SCE_ERROR_ERRNO_EBUSY || implemented || 0 || implemented || implemented || implemented
|-
| 3 || implemented || implemented || implemented || implemented || implemented || implemented
|-
| 4 ||  || implemented ||  ||  ||  ||
|-
| 5 ||  ||  ||  ||  ||  ||  
|-
|-
| 6 ||  ||  ||  ||  ||  ||  
| 0x3F || Scheduled sceIoChstat end
|-
|-
| 7 || || implemented ||  || 0 || implemented || implemented
| 0x40 || sceVopChstat start
|-
|-
| 8 ||  ||  ||  ||  ||  ||  
| 0x41 || sceVopChstat end
|-
|-
| 9 || 0 || 0 || 0 || 0 || 0 || 0
| 0x42 || Scheduled sceIoIoctl start
|-
|-
| 10 || || 0 || 0 || 0 || 0 || 0
| 0x43 || Scheduled sceIoIoctl end
|-
|-
| 11 ||  ||  ||  ||  ||  ||  
| 0x44 || sceVopIoctl start
|-
|-
| 12 || implemented || implemented ||  || implemented || implemented || implemented
| 0x45 || sceVopIoctl end
|-
|-
| 13 || implemented || implemented ||  || implemented || implemented || implemented
| 0x46 || Scheduled sceIoSync start
|-
|-
|}
| 0x47 || Scheduled sceIoSync end
 
== VFS Node Operations ==
 
*implemented operation is marked as <code>implemented</code>
*not implemented is marked as <code> </code>
*return 0 placeholder is marked as <code>0</code>
*return error is marked with corresponding error name
 
{| class="wikitable"
|-
|-
! Function !! sdstor_dev_fs !! exfat !! dummy_ttyp_dev_fs !! PFS_REDIRECT_INF !! PFS_GDSD_INF !! PFS_AC_INF
| 0x48 || sceVopSync start
|-
|-
| 1 || implemented || implemented  || 0            || implemented || implemented || implemented
| 0x49 || sceVopSync end
|-
|-
| 2 || || implemented ||                          || implemented || implemented || implemented
| 0x4A || Scheduled sceIoFgetstat start
|-
|-
| 3 || implemented  || implemented  || 0          || implemented || implemented || implemented
| 0x4B || Scheduled sceIoFgetstat end
|-
|-
| 4 || implemented  || implemented  || implemented || implemented || implemented || implemented
| 0x4C || sceVopFgetstat start/end
|-
|-
| 5 || implemented  || implemented  || 0          || implemented || implemented || implemented
| 0x4D || -
|-
|-
| 6 || implemented  || implemented  || implemented || implemented || implemented || implemented
| 0x4E || Scheduled sceIoFchstat start
|-
|-
| 7 || implemented  || implemented  || 0          || implemented || implemented || implemented
| 0x4F || Scheduled sceIoFchstat end
|-
|-
| 8 || || SCE_ERROR_ERRNO_EUNSUP || 0            || implemented || implemented || implemented
| 0x50 || sceVopFchstat start
|-
|-
| 9 || implemented  || implemented ||              || implemented || implemented || implemented
| 0x51 || sceVopFchstat end
|-
|-
| 10 || || implemented ||                        || implemented || implemented || implemented
| 0x52 || sceVopLookup start
|-
|-
| 11 || || implemented ||                        || implemented || implemented || implemented
| 0x53 || sceVopLookup end
|-
|-
| 12 || || implemented ||                        || implemented || implemented || implemented
| 0x54 || sceVopCreate start
|-
|-
| 13 || || implemented ||                        || implemented || implemented || implemented
| 0x55 || sceVopCreate end
|-
|-
| 14 || || implemented ||                        || implemented || implemented || implemented
| 0x56 || sceVopInactive start
|-
|-
| 15 || || implemented ||                        || implemented || implemented || implemented
| 0x57 || sceVopInactive end
|-
|-
| 16 || || implemented ||                        || implemented || implemented || implemented
| 0x58 || sceVopWhiteout start
|-
|-
| 17 || || implemented ||                        || implemented || implemented || implemented
| 0x59 || -
|-
|-
| 18 ||  ||  ||                                    ||  ||  ||  
| 0x5A || sceVopWhiteout end
|-
|-
| 19 || implemented  || implemented ||            || implemented || implemented || implemented
| 0x5B || sceVopCleanup start
|-
|-
| 20 || implemented  || implemented ||            || implemented || implemented || implemented
| 0x5C || sceVopCleanup end
|-
|-
| 21 || 0 || implemented || 0                      || implemented || implemented || implemented
| 0x5D || sceVfsOpMount start
|-
|-
| 22 ||  || implemented ||                        ||  ||  ||  
| 0x5E || sceVfsOpMount end
|-
|-
| 23 ||  || implemented ||                        ||  ||  ||  
| 0x5F || sceVfsOpUnmount start
|-
|-
| 24 || 0 || implemented ||                        || implemented || implemented || implemented
| 0x60 || sceVfsOpUnmount end
|-
|-
| 25 || || implemented ||                        || implemented || implemented || implemented
| 0x61 || sceVfsOpDevctl start
|-
|-
| 26 || || implemented ||                        || implemented || implemented || implemented
| 0x62 || sceVfsOpDevctl end
|-
|-
| 27 || || implemented ||                        || implemented || implemented || implemented
| 0x63 || sceVfsOpSync start
|-
|-
| 28 || || implemented ||                        || implemented || implemented || implemented
| 0x64 || sceVfsOpSync end
|-
|-
| 29 ||  ||  ||                                    ||  ||  ||  
| 0x65 || sceVfsOpDecodePathElem start
|-
|-
| 0x66 || sceVfsOpDecodePathElem end
|}
|}


== Typical i/o operation execution ==
== Mount Points ==


This is a very brief desctiption for overall understanding of io <code>vfs_node</code> operations.
This table is stored in data segment of SceIofilemgr as array of <code>vfs_mount_point_info</code> elements.
Implementation of SceIofilemgr is quite solid and most of the functions are implemented in the same manner however there could be exceptions.
When io operation like <code>sceIoLseek</code> is called here is what happens:
*all user space arguments are copied to kernel space, usually onto the kernel stack. all user space uids are converted to kernel space uids
*optionally control may be passed to wrapper function that also does conversion
*then control is passed to kernel level function like <code>sceIoLseekForDriver</code>
*kernel level function checks 0x2198 (IoSchedulerDispatcher initialized) flag


if dispatcher is not initialized:
When [[#sceVfsMountForDriver]] is executed, it finds vfs_add_data element by filesystem string and then selects appropriate mount scenario by devMinor and devMajor.
*kernel level function updates 0x1964 (i/o dirty) and 0x1980 (i/o counter) flags
*kernel level function spawns separate thread and passes all arguments in single structure
*separate thread then unpacks all arguments, finds <code>vfs_node</code> and calls exported function like <code>vfs_node_func7</code>
*exported function packs all arguments into single stucture and calls real callback since it has <code>vfs_node</code> with node operation table
*callback routine should be located in generic device driver, like SceSdstor, SceExfatfs or ScePfsMgr. It unpacks the arguments and then does something. For example SceSdstor dispatches the call further to SceSdif, SceWlanBt, SceMsif and SceUsbMass.
*kernel level function updates 0x1980 (i/o counter) flag


if dispatcher is initialized:
*<code><rnd></code> means random numeric string of length 13
*kernel level function passes arguments to wrapper
*wrapper initializes <code>io_contex</code> and assigns i/o operation index
*wrapper updates 0x1964 (i/o dirty) and 0x1980 (i/o counter) flags
*wrapper runs dispatcher function (offset 0x17C00) in separate thread. this function selects proper <code>vfs_node</code> function based on i/o operation index.
*wrapper updates 0x1980 (i/o counter) flag


== i/o operation index ==
See [[SceSdstor]] for "sdstor0:" Block Device.


Typically operations are dispatched from kernel functions.
{| class="wikitable sortable"
 
! Unix Mount || Dev Major || Dev Minor || fsName || assignName || blockdevName || VSH Mount Id || Comment
However there are exceptions: sceIoLseek32, sceIoDopenAsync, sceIoDreadAsync, sceIoDcloseAsync user functions can be dispatched.
 
Typically operations have normal and async version - regulated by async flag in <code>io_context</code>.
 
However there are exceptions: sceIoLseek32, sceIoIoctlForDriver, sceIoDevctlForDriver, sceIoGetstatForDriver_2, sceIoChstatForDriver_2, sceIoDreadForDriver_2 do not have async version.
 
{| class="wikitable"
|-
|-
! Index !! Normal Operation !! Async Operation !! Vfs Node Function
| /PD<rnd> || 0x3 || 0x1001 || PFS_GDSD_INF || PD<rnd>0 || - || 0x0 || -
|-
|-
| 1 || sceIoOpenForDriver || sceIoOpenAsyncForDriver ||  
| /sd/exfat || 0x2030001 || 0x30002 || [[SceExfatfs|exfat]] || sd0: || sdstor0:ext-lp-act-entire || 0x100 || -
|-
|-
| 2 || sceIoCloseForDriver || sceIoCloseAsyncForDriver ||  
| /os/exfat || 0x1000001 || 0x1002 || [[SceExfatfs|exfat]] || os0: || sdstor0:int-lp-act-os || 0x200 || Formatted as FAT16.
|-
|-
| 3 || sceIoReadForDriver || sceIoReadAsyncForDriver ||  
| /vs/exfat || 0x1000001 || 0x1002 || [[SceExfatfs|exfat]] || vs0: || sdstor0:int-lp-ign-vsh || 0x300 || Formatted as FAT16.
|-
|-
| 4 || sceIoWriteForDriver || sceIoWriteAsyncForDriver ||  
| /vd/exfat || 0x1000001 || 0x10002 || [[SceExfatfs|exfat]] || vd0: || sdstor0:int-lp-ign-vshdata || 0x400 || Formatted as FAT16.
|-
|-
| 5 || sceIoLseekForDriver || sceIoLseekAsyncForDriver || 7
| /tm/exfat || 0x1000001 || 0x10002 || [[SceExfatfs|exfat]] || tm0: || sdstor0:int-lp-ign-vtrm || 0x500 || Formatted as FAT16.
|-
|-
| 6 || sceIoLseek32 || N/A || 7
| /ur/exfat || 0x1000001 || 0x50002 || [[SceExfatfs|exfat]] || ur0: || sdstor0:int-lp-ign-user || 0x600 || Formatted as exFAT.
|-
|-
| 7 || sceIoIoctlForDriver || N/A || 8
| /ud/exfat || 0x1000001 || 0x10002 || [[SceExfatfs|exfat]] || ud0: || sdstor0:int-lp-ign-updater || 0x700 || Formatted as FAT16.
|-
|-
| 8 || sceIoRemoveForDriver || sceIoRemoveAsyncForDriver ||  
| /ux/exfat || 0x2020001 || 0x30002 || [[SceExfatfs|exfat]] || ux0: || External: sdstor0:xmc-lp-ign-userext<br />Internal: sdstor0:int-lp-ign-userext || 0x800 || Formatted as exFAT.
|-
|-
| 9 || sceIoDopenForDriver || sceIoDopenAsyncForDriver ||  
| /gro/exfat || 0x2010001 || 0x21002 || [[SceExfatfs|exfat]] || gro0: || sdstor0:gcd-lp-ign-gamero || 0x900 || Formatted as exFAT.
|-
|-
| 10 || sceIoDcloseForDriver || sceIoDcloseAsyncForDriver ||  
| /grw/exfat || 0x2010001 || 0x20002 || [[SceExfatfs|exfat]] || grw0: || sdstor0:gcd-lp-ign-gamerw || 0xA00 || Formatted as exFAT.
|-
|-
| 11 || sceIoDreadForDriver || sceIoDreadAsyncForDriver || 14
| /sa/exfat || 0x1000001 || 0x1002 || [[SceExfatfs|exfat]] || sa0: || sdstor0:int-lp-ign-sysdata || 0xB00 || Formatted as FAT16.
|-
|-
| 12 || sceIoMkdirForDriver || sceIoMkdirAsyncForDriver || 10
| /pd/exfat || 0x1000001 || 0x1002 || [[SceExfatfs|exfat]] || pd0: || sdstor0:int-lp-ign-pidata || 0xC00 || Formatted as exFAT.
|-
|-
| 13 || sceIoRmdirForDriver || sceIoRmdirAsyncForDriver ||  
| /imc/exfat || 0x2020001 || 0x30002 || [[SceExfatfs|exfat]] || imc0: || sdstor0:int-lp-ign-userext || 0xD00 || Formatted as exFAT.
|-
|-
| 14 || sceIoRenameForDriver || sceIoRenameAsyncForDriver ||  
| /xmc/exfat || 0x2020001 || 0x30002 || [[SceExfatfs|exfat]] || xmc0: || sdstor0:xmc-lp-ign-userext || 0xE00 || Formatted as exFAT.
|-
|-
| 15 || sceIoChstatForDriver || sceIoChstatAsyncForDriver || 16
| /uma/exfat || 0x2030001 || 0x2 || [[SceExfatfs|exfat]] || uma0: || sdstor0:uma-lp-act-entire || 0xF00 || -
|-
|-
| 16 || sceIoChstatByFdForDriver || sceIoChstatByFdAsyncForDriver || 26
| /tty || 0x4000020 || 0x6003 || dummy_ttyp_dev_fs || tty || dummy_ttyp_dev_fs || 0x0 || -
|-
|-
| 17 || sceIoGetstatForDriver || sceIoGetstatAsyncForDriver || 15
| /dev || 0x10 || 0x3 || sdstor_dev_fs || sdstor0: || sd || 0x1 || -
|-
|-
| 18 || sceIoGetstatByFdForDriver || sceIoGetstatByFdAsyncForDriver ||  
| /md || 0x10 || 0x2003 || md_dev_fs || md0: || md || 0x2 || -
|-
|-
| 19 || sceIoDevctlForDriver || N/A ||  
| /lma/exfat || 0x1 || 0x5 || [[SceExfatfs|exfat]] || lma0: || / || 0x10000 || -
|-
|-
| 20 || sceIoSyncForDriver || sceIoSyncAsyncForDriver ||  
| /lmb/exfat || 0x1 || 0x5 || [[SceExfatfs|exfat]] || lmb0: || / || 0x20000 || -
|-
|-
| 21 || sceIoSyncByFdForDriver || sceIoSyncByFdAsyncForDriver ||  
| /mfa/exfat || 0x1 || 0x5 || [[SceExfatfs|exfat]] || mfa0: || / || 0x50000 || -
|-
|-
| 22 || sceIoPreadForDriver || sceIoPreadAsyncForDriver ||  
| /mfb/exfat || 0x1 || 0x5 || [[SceExfatfs|exfat]] || mfb0: || / || 0x60000 || -
|-
|-
| 23 || sceIoPwriteForDriver || sceIoPwriteAsyncForDriver ||  
| /host || 0x3000004 || 0x8006 || - || host0: || deci4p_drfp_dev_fs || - || -
|-
|}
| 24 || sceIoGetstatForDriver_2 || N/A ||  
 
Dev Minor
 
{| class="wikitable sortable"
! Mask || Value || Comment
|-
|-
| 25 || sceIoChstatForDriver_2 || N/A ||  
| 0xFF || - || type
|-
|-
| 26 || sceIoDreadForDriver_2 || N/A ||  
| 0xFF00 || - || flags
|-
|-
| 27 || N/A || sceIoDopenAsync ||  
| 0xFF00 || 0x1000 || Read Only
|-
|-
| 28 || N/A || sceIoDreadAsync ||  
| 0xFF0000 || 0x10000 || Invalidate fd on susppend/resume within process/system
|-
|-
| 29 || N/A || sceIoDcloseAsync ||  
| 0xFF0000 || 0x20000 || External media
|}
|}


== Types ==
== VFS Implementation ==


<source lang="c">
Information can be found on separate page [[VFS_Implementation|VFS Implementation]]


typedef struct vfs_block_dev_info //size is 0x14
==== Note ====
{
  char* vitaMount;
  char* filesystem; // Some name, I guess it is filesystem
  char* blockDevicePrimary;
  char* blockDeviceSecondary; // can be 0
  uint32_t vshMountId; //must be same as in mount_point_info
}vfs_block_dev_info;


typedef struct vfs_mount_point_info_base
Max vfs node number is 0x1000.
{
  char* unixMount;
  uint32_t unk_4; //zero
  uint32_t devMajor;
  uint32_t devMinor;


  char* filesystem;
== Types ==
  void* unk_14; //zero
  vfs_block_dev_info* blockDev1;
  uint32_t unk_1C; //zero
} vfs_mount_point_info_base;


typedef struct vfs_mount_point_info //size is 0x38
<source lang="C">
{
typedef struct SceIoMount { // size is 0x34-bytes
  uint32_t vshMountId;
void *mnt;
 
int mntId;
  vfs_mount_point_info_base base;
char assignName[0x20];
SceUInt32 openedEntryNum;
SceBool unk_0x2C;
int unk_0x30;
} SceIoMount;


  vfs_block_dev_info* blockDev2; //same as blockDev1
typedef struct SceIoMountInfo { // size is 0x54C-bytes
 
void *mnt;
  uint32_t unk_28; //zero - except for (ux0:, gro0:, grw0:) - maybe related to device specific data?
int mntId;
  uint32_t unk_2C; //zero
char assignName[0x20];
 
SceUInt32 openedEntryNum;
  uint32_t unk_30; //zero
int unk_0x2C;
  uint32_t unk_34; //zero
int unk_0x30;
}vfs_mount_point_info;
int unk_0x34;
int unk_0x38;
int unk_0x3C;
int unk_0x40;
int unk_0x44;
int unk_0x48;
int unk_0x4C;
int unk_0x50;
int unk_0x54;
int unk_0x58;
int unk_0x5C;
int unk_0x60;
int unk_0x64;
int unk_0x68;
int unk_0x6C;
int unk_0x70;
int unk_0x74;
int unk_0x78;
int unk_0x7C;
int unk_0x80;
int unk_0x84;
char unk_0x88[0x400];
int unk_0x488;
char unk_0x48C[0x40];
char blockdevName[0x40];
char unk_0x50C[0x40];
} SceIoMountInfo;


//probably vfsops
typedef struct vfs_node_info { // size is 0x38
struct node_ops1 // size is 0x34 (13 pointers)
  char name[0x20];
{
  vfs_node* node; // can be zero
  int (*func1)(void* ctx);
  uint32_t unk_24; // probably size of vfs_node
  int (*func2)(void* ctx); // ?
  uint32_t unk_28; // probably flags
  int (*func3)(void* ctx);
  vfs_node_info* node_info_2C; // can be zero
  int (*func4)(void* ctx);
  vfs_node_info* node_info_30; // can be zero
  int (*func5)(void* ctx); // not implemented by all
  vfs_node_info* node_info_34; // can be zero
  int (*func6)(void* ctx); // not implemented by all
} vfs_node_info;
  int (*func7)(void* ctx);
  int (*func8)(void* ctx); // not implemented by all
  int (*func9)(void* ctx); // called by sceVfsAddVfs
  int (*func10)(void* ctx); // called by sceVfsDeleteVfs
  int (*func11)(void* ctx); // not implemented by all
  int (*func12)(void* ctx); // sceIoDevctlForDriver
  int (*func13)(void* ctx); // (initialize partition entry in table)(map block device name on numeric name)
};


//probably vnodeops
// It looks like this structure is used to get some response into "error" field
struct node_ops2 // size is 0x74 (29 pointers)
// when executing sceKernelSignalCondTo calls.
{
// This structure is used by SceIofileDaemon when it monitors mount/unmount async requests
  int (*func1)(void* ctx); // sceIoOpenForDriver (this function creates device handle) (It operates with normal block device name and unix mount)
// in SceIofilemgrMount thread using SceIofilemgrMount conditional variable.
  int (*func2)(void* ctx); // sceIoOpenForDriver (another one ?)
// Upon completion it issues the signal and result of operation is stored in error field.
  int (*func3)(void* ctx); // sceIoOpenForDriver (another one ?) or sceIoCloseForDriver
// It looks like operations 1/2 are used for normal filesystems.
  int (*func4)(void* ctx); // add partition (add vfsNode) (initialize partition entry in table) (for example happens on card insert exclusively) (operates with numeric names)
// Operations 3/4 are used for PFS_GDSD_INF filesystem.
  int (*func5)(void* ctx); // sceIoReadForDriver
typedef struct cond_ctx {
  int (*func6)(void* ctx); // sceIoWriteForDriver
  uint32_t op_index; // operation index. 1,3 - mount. 2,4 - unmount
  int (*func7)(void* ctx); // sceIoLseekForDriver or sceIoLseek32?
   uint32_t unk_4;
  int (*func8)(void* ctx); // sceIoIoctlForDriver
  int (*func9)(void* ctx); // remove partition (remove vfsNode) (deinitialize partition entry in table) (for example happens on card remove exclusively) (operates with numeric names)
  int (*func10)(void* ctx); // sceIoMkdirForDriver
  int (*func11)(void* ctx); // sceIoRmdirForDriver
  int (*func12)(void* ctx); // sceIoDopenForDriver
  int (*func13)(void* ctx); // sceIoDcloseForDriver
  int (*func14)(void* ctx); // sceIoDreadForDriver
  int (*func15)(void* ctx); // sceIoGetstatForDriver or sceIoGetstatByFdForDriver
  int (*func16)(void* ctx); // sceIoChstatForDriver or sceIoChstatByFdForDriver
  int (*func17)(void* ctx); // sceIoRenameForDriver
  int (*func18)(void* ctx); // not implemented by all
  int (*func19)(void* ctx); // sceIoPreadForDriver
  int (*func20)(void* ctx); // sceIoPwriteForDriver
  int (*func21)(void* ctx); // ?
  int (*func22)(void* ctx); // not referenced
  int (*func23)(void* ctx); // not referenced
  int (*func24)(void* ctx); // sceIoSyncForDriver or sceIoSyncByFdForDriver
  int (*func25)(void* ctx); // sceIoGetstatByFdForDriver
  int (*func26)(void* ctx); // sceIoChstatByFdForDriver
  int (*func27)(void* ctx); // ?
  int (*func28)(void* ctx); // ?
  int (*func29)(void* ctx); // not implemented by all
};
 
struct vfs_add_data
{
    node_ops1* funcs1;
    const char *name; //exfat etc. max size is 0x20
    int flags; //0x0E
    int unk_C; //0x01 / 0x00 (root, leaf ?)
   
    int unk_10; //0x10
    node_ops2* funcs2;
    int unk_18; //0x00
    vfs_add_data* next_element; //ptr to next element, confirmed
};
 
//this structure contains device specific data
//this definition applies only to SceSdif driver
//it is yet unknown what data is stored by SceExfatfs, ScePfsMgr and SceIofilemgr implementations
 
struct vfs_device_info //size is 0xC
{
  partition_entry* partition;
  sd_stor_device* device;
   uint32_t unk_8;
} vfs_device_info;
 
struct child_node_info
{
  vfs_node* node;
} child_node_info;
 
typedef struct vfs_fd_lock
{
  SceUID mutex_SceVfsFdLock;
  SceUID cond_SceVfsFdCond;
   uint32_t unk_8;
   uint32_t unk_8;
   uint32_t unk_C;
   uint32_t unk_C;
  uint32_t unk_10;
  uint32_t unk_14;
  uint32_t unk_18;
  uint32_t unk_1C;
  int error; // either error code or 0
  cond_ctx* next; // 0 means end of list
} cond_ctx;


} vfs_fd_lock;
typedef struct ctx_19D4 {
 
   void* unk_0;  
typedef struct vfs_mount_cc
{
   uint32_t unk_0;
   uint32_t unk_4;
   uint32_t unk_4;
   uint32_t unk_8; // pointer to data section, offset 34
   vfs_node* offset; // Pool of vfs_nodes with 0x1000 elements.
  uint32_t unk_C; // pointer to data section, offset 1C
                    // It is used in sceVfsGetNewVnodeForDriver, mount/unmount and node find routines.
} vfs_mount_cc;
  uint32_t size;


typedef struct vfs_mount //size is not known exactly, at least 0xD0 + 0x10 + 0x10
  uint32_t count;
{
  uint32_t unk_14;
   uint32_t fast_mutex_SceVfsMnt;
  uint32_t unk_18;
   uint32_t unk_1C;
} ctx_19D4;


typedef struct ctx_11C { //size is 0x220
  void* unk_0;
   uint32_t unk_4;
   uint32_t unk_4;
   uint32_t unk_8;
   void* offset; // pointer to array of byte size 0x10000 with 0x40 elements of size 0x400
   uint32_t unk_C;
   uint32_t size;


   uint8_t data1[0x30];
   uint32_t count;


   vfs_node* unk_40; // child ?
   uint8_t data[0x20C];
} ctx_11C;


   SceUID pool;     // 0x44 - SceIoVfsHeap
typedef struct io_scheduler_dispatcher { //size is 0xB8
   char unk_0[0x50];


   uint32_t unk_48; // = 0x101
   io_scheduler* unk_50; // Internal storage
  io_scheduler* unk_54; // Gamecard
  io_scheduler* unk_58; // Removable media (memory card)
  io_scheduler* unk_5C; // Host File System (host0:)
  io_scheduler* unk_60; // Default
    
    
   union _devMajor
   uint32_t unk_64; // pointer to unknown module data section
  {
   uint32_t unk_68; // SceIoSchedulerDispatcher fast mutex
      struct _dmDword
      {
        uint32_t unk_4C;
      } dw;
      struct _dmWord
      {
        uint16_t unk_4C;
        uint16_t unk_4E;
      } w;
      struct _dmByte
      {
        uint8_t unk_4C;
        uint8_t unk_4D;
        uint8_t unk_4E;
        uint8_t unk_4F;
      } b;
  } devMajor;
 
  uint32_t devMinor; // 0x50
 
  vfs_node* unk_54;
   uint32_t unk_58;  // counter
  vfs_add_data* add_data; // 0x5C
 
  uint32_t unk_60;   // counter
 
  uint32_t unk_64;
  uint32_t unk_68;
   uint32_t unk_6C;
   uint32_t unk_6C;
 
  char unk_70[0x30];
 
  uint32_t unk_A0;
  uint32_t unk_A4;
 
  SceUID unk_A8; // SceIoSchedulerDispatcher event flag uid
  uint32_t unk_AC; // counter
  uint32_t unk_B0; // flag
  uint32_t unk_B4; // 0
 
} io_scheduler_dispatcher;


   vfs_mount* unk_70; // next ?
typedef struct io_scheduler_item { // size is 0x14 - allocated from SceIoScheduler heap
   vfs_mount* unk_74; // prev ?
   io_scheduler* unk_0; // parent
   uint32_t unk_4; // 0
  uint32_t unk_8; // 0
  uint32_t unk_C; // 0
  uint32_t unk_10; // pointer to unknown module data section
} io_scheduler_item;


  vfs_mount* unk_78; //singly linked list related to pointer 19D0 in data section
enum io_device_code {
  Internal = 0x100,
  Game_Card = 0x201,
  Removable = 0x202,
  Host_File_System = 0x300,
  Default = 0x0
};


  vfs_block_dev_info* blockDev; // 0x7C
typedef struct io_scheduler { //size is 0xA8 - allocated from SceIoScheduler heap
 
   io_device_code unk_0;  
   char unixMount[0x40]; // 0x80 /gro/exfat, /ux/exfat etc
   io_scheduler_item* unk_4; // item 0
 
   io_scheduler_item* unk_8; // item 1
  uint32_t unk_C0; 
   io_scheduler_item* unk_C; // item 2
 
    
   void* unk_C4; // = mountInfo->unk_14
   io_scheduler_item* unk_10; // item 3
 
   io_scheduler_item* unk_14; // item 4
   vfs_fd_lock* fd_lock_ptr; // C8 - points to area in this structure
   io_scheduler_item* unk_18; // item 5
 
   io_scheduler_item* unk_1C; // item 6
   vfs_mount_cc* unk_CC; // CC - points to area in this structure
 
  vfs_fd_lock fd_lock; // D0
 
   vfs_mount_cc unk_E0; //E0;
 
} vfs_mount;
 
typedef struct vfs_node_70
{
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
   vfs_node_70* unk_C; //zero or pointer to next element
 
   void* unk_10; //pointer to struct of at least size 0x94
  uint32_t unk_14; //number
   uint32_t len; // 18
   char* data; // 1C
} vfs_node_70;
 
struct vfs_node //size is 0x100
{
  uint32_t unk_0;
  uint32_t unk_4;  // most likely SceUID of current thread
  uint32_t unk_8; // counter
  SceUID event_flag_SceVfsVnode; // 0xC - event flag SceVfsVnode
 
  uint32_t evid_bits; // 0x10
  uint32_t unk_14;
  uint32_t unk_18;
  uint32_t unk_1C;
 
  uint8_t data1[0x20];
    
    
   node_ops2 *ops; // 0x40
   io_scheduler_item* unk_20; // item 7
   uint32_t unk_44;
   io_scheduler_item* unk_24; // item 8
   void* dev_info; //allocated on heap with uid from uid field
   io_scheduler_item* unk_28; // item 9
                    //this is device specific / node specific data
  io_scheduler_item* unk_2C; // item 10
                    //for partition node this will be vfs_device_info*
 
                   
  io_scheduler_item* unk_30; // item 11
                    //for pfs node it looks like to be child_node_info*  
   io_scheduler_item* unk_34; // item 12
                    //which probably points to partition node
   io_scheduler_item* unk_38; // item 13
 
   io_scheduler_item* unk_3C; // item 14
   vfs_mount* node; // 0x4C
   io_scheduler_item* unk_40; // item 15
 
    
   vfs_node* prev_node; // 0x50
   uint32_t unk_44; // flag1 0x40000 or 0x00
 
   uint32_t unk_48; // flag2 0x40000 or 0x00
   vfs_node* unk_54; // copied from node base
   io_scheduler_dispatcher* unk_4C; // parent
   uint32_t unk_58; // counter - probably counter of nodes
    
   uint32_t unk_5C;
   SceUID unk_50; // SceIoScheduler mutex
 
   SceUID unk_54; // SceIoScheduler cond
   uint32_t unk_60;
    
  uint32_t unk_64;
   char unk_58; // 0
  uint32_t unk_68;
   char unk_59; // 0
  SceUID pool_uid; // 0x6C - SceIoVfsHeap or other pool
   char unk_5A; // 0
 
   char unk_5B; // 0
  vfs_node_70* unk_70;
   uint32_t unk_74; // = 0x8000
   uint32_t unk_78; // some flag
   uint32_t unk_7C;
 
   uint32_t unk_80;
   uint32_t unk_84;
  uint32_t unk_88;
   uint32_t unk_8C;
 
   uint32_t unk_90;
   uint32_t unk_94;
   vfs_node* unk_98; //some child node
   uint32_t unk_9C;
 
  uint8_t data2[0x30];
    
    
   uint32_t unk_D0; // devMajor.w.unk_4E
   uint32_t unk_5C; // 0
 
 
   uint8_t data3[0x2C];
   // this is probably a separate structure
 
   SceUID unk_60; // SceIoSchedWorker thread id
}vfs_node;
   SceUID unk_64; // SceIoScheduler mutex from self
 
   SceUID unk_68; // SceIoScheduler cond from self
struct vfs_node_info //size is 0x38
   io_scheduler* unk_6C; // pointer to self
{
 
  char name[0x20];
   uint32_t unk_70; // 0
   vfs_node* node; //can be zero
   uint16_t unk_74; // 0
   uint32_t unk_24; // probably size of vfs_node
  uint16_t unk_76; // 0
   uint32_t unk_28; // probably flags
  uint32_t unk_78; // 0
   vfs_node_info* unk_2C; //can be zero
  uint32_t unk_7C; // 0
   vfs_node_info* unk_30; //can be zero
 
   vfs_node_info* unk_34; //can be zero
  uint32_t unk_80; //
}vfs_node_info;
  uint32_t unk_84; // some flag
 
 
//looks like this structure is used to get some response into "error" field
   uint32_t unk_88; //0x80
//when executing sceKernelSignalCondTo calls
   uint32_t unk_8C; //0x80
//this structure is used by SceIofileDaemon when it monitors mount/unmount async requests
    
//in SceIofilemgrMount thread using SceIofilemgrMount conditional variable
   uint32_t unk_90; //0x80
//upon completion it issues the signal and result of operation is stored in error field
   uint32_t unk_94; //0x80
//it looks like operations 1/2 are used for normal filesystems
   uint32_t unk_98; //0x80
//operations 3/4 are used for PFS_GDSD_INF filesystem
   uint32_t unk_9C; //0x80
typedef struct cond_ctx
    
{
   uint32_t unk_A0; // 0
   uint32_t op_index; //operation index. 1,3 - mount. 2,4 - unmount
   uint32_t unk_A4; // 0
   uint32_t unk_4;
   uint32_t unk_8;
   uint32_t unk_C;
   uint32_t unk_10;
   uint32_t unk_14;
   uint32_t unk_18;
   uint32_t unk_1C;
   int error; //either error code or 0
   cond_ctx* next; //0 means end of list
} cond_ctx;


typedef struct ctx_19D4
} io_scheduler;
{
  void* unk_0;
  uint32_t unk_4;
  vfs_node* offset; // pool of vfs_nodes with 0x1000 elements.
                    // it is used in sceVfsGetNewNode, mount/unmount and node find routines
  uint32_t size;


  uint32_t count;
// Context used for dispatching i/o operations
  uint32_t unk_14;
typedef struct io_context { // size is 0xB8 on FW 3.60
  uint32_t unk_18;
   uint32_t unk_0;
  uint32_t unk_1C;
}ctx_19D4;
 
typedef struct ctx_11C //size is 0x220
{
   void* unk_0;  
   uint32_t unk_4;
   uint32_t unk_4;
   void* offset; // pointer to array of byte size 0x10000 with 0x40 elements of size 0x400
   uint32_t unk_8;
   uint32_t size;
   uint32_t unk_C;
 
 
   uint32_t count;
   uint16_t unk_10;
 
  uint16_t unk_12;
   uint8_t data[0x20C];
   uint16_t unk_14;
}ctx_11C;
  uint16_t unk_16;
 
  void *data_0; // 0x18
typedef struct io_scheduler_dispatcher //size is 0xB8
  uint32_t unk_1C; // 0x1C
{
 
   char unk_0[0x50];
   SceSize size_0; // 0x20
 
  uint32_t io_op_index; // 0x24
   io_scheduler* unk_50; // Internal
  uint32_t ioctlOutdata0; // 0x28
   io_scheduler* unk_54; // Game Card
   io_device_code device_code; // 0x2C, ioctlOutdata1
   io_scheduler* unk_58; // Removable
 
   io_scheduler* unk_5C; // Host File System
   char async; // 0x30
   io_scheduler* unk_60; // Default
   char unk_31;
  char unk_32;
  char unk_33;
  SceUID pid; // 0x34, sceKernelGetProcessIdForDriver
   SceUID threadId; // 0x38, sceKernelGetThreadIdForDriver
   SceUID tlsPid; // 0x3C, sceKernelGetProcessIdFromTLSForDriver
    
    
   uint32_t unk_64; // pointer to unknown module data section
   uint32_t unk_40; // 0x40, SceThreadmgrForDriver_332E127C
   uint32_t unk_68; //SceIoSchedulerDispatcher fast mutex
   uint32_t cpuMask; // 0x44, sceKernelGetThreadCpuAffinityMaskForDriver
   uint32_t unk_6C;
   uint32_t threadPriority; // 0x48, sceKernelGetThreadCurrentPriorityForDriver
  void* list0; // 0x4C, pointer to some linked list with elements of size 0x14
    
    
   char unk_70[0x30];
   uint32_t listSize; // 0x50, number of items in linst
  void* list1; // 0x54, pointer to some linked list with elements of size 0x14
  uint32_t sizeOfList; // 0x58, size of list in bytes
  uint16_t state; // 0x5C, bit 16 of state where state = (MRC p15, 0, state, c13, c0, 3)
  uint16_t unk_5E; // 0x5E
    
    
   uint32_t unk_A0;
   uint32_t unk_60; // 0x60
   uint32_t unk_A4;
  SceUID fd; // 0x64
  void *data_1; // 0x68
   uint32_t unk_6C;
    
    
   SceUID unk_A8; //SceIoSchedulerDispatcher event flag uid
   SceSize size_1; // 0x70
   uint32_t unk_AC; // counter
   uint32_t unk_74; // 0x74
   uint32_t unk_B0; // flag
   uint32_t unk_78; // 0x78, -1
   uint32_t unk_B4; // 0
   uint32_t unk_7C; // 0x7C, -1
    
    
} io_scheduler_dispatcher;
  uint32_t op_result; // 0x80, result of i/o operation
  uint32_t unk_84;
  void* unk_88;
  uint32_t unk_8C;
 
  uint32_t unk_90;
  uint32_t unk_94;
  uint32_t unk_98;
  uint32_t unk_9C;
 
  uint32_t unk_A0;
  uint32_t unk_A4;
  uint32_t unk_A8;
  uint32_t unk_AC;
 
  SceUInt64 sytemTimeWide; // 0xB0, sceKernelGetSystemTimeWideForDriver
} io_context;
 
typedef struct _SceVfsFileObject_0995 { //SceVfsFileClass object - size is 0x40 on 0.995
  /* SceKernelObject header not included in size nor structure */
  SceInt32 unk_0x0;
  SceInt32 unk_0x4;
  SceInt64 unk_0x8;
  SceInt32 unk_0x10; //Set to 1 during sceVfsAllocateFile
  ScePID creator_pid; //Result of sceKernelGetProcessIdFromTLS() during sceVfsAllocateFile
  void* unk_0x18; //Pointer provided as a1 to sceVfsAllocateFile
  SceUIDVfsFileObject* next; //Pointer to next file in linked list - list head is in a1
  SceInt32 unk_0x20;
  SceInt16 unk_0x24;
  char unk_0x26; //unused?
  SceInt8 unk_0x27;
  SceInt32 unk_0x28; //comes from a1->0x4C->0xC8
  SceInt32 unk_0x2C; //((a1->0x4C->0x50 & 0x20000) << 1) | (a1->0x4C->0x50 & 0x10000)
  SceInt32 unk_0x30;
  char unk_0x34; //unused?
  SceInt8 unk_0x35;
  SceInt8 unk_0x36;
  SceInt8 unk_0x37;
  SceInt8 unk_0x38;
  SceInt8 unk_0x39;
  SceInt8 unk_0x3A;
  SceInt8 unk_0x3B;
  SceInt8 unk_0x3C;
  SceInt8 unk_0x3D;
  SceInt8 unk_0x3E;
  SceInt8 unk_0x3F;
} SceUIDVfsFileObject_0995;
 
typedef struct _SceUIDVfsFileObject { //SceUIDVfsFileClass object - size is 0x48 on 3.60
  /* SceKernelObject header not included in size nor structure */
  SceInt32 unk_0x0;
  SceInt32 unk_0x4;
  SceInt64 unk_0x8;
  SceInt32 unk_0x10; //Set to 1 during sceVfsAllocateFile
  ScePID creator_pid; //Result of sceKernelGetProcessIdFromTLS() during sceVfsAllocateFile
  void* unk_0x18; //Pointer provided as a1 to sceVfsAllocateFile
  SceUIDVfsFileObject* next; //Pointer to next file in linked list - list head is in a1
  SceInt32 unk_0x20; //Zero'ed in constructor
  SceInt16 unk_0x24;
  char unk_0x26; //unused?
  SceInt8 unk_0x27;
  SceInt32 unk_0x28; //comes from a1->0x4C->0xC8
  SceInt32 unk_0x2C; //((a1->0x4C->0x50 & 0x20000) << 1) | (a1->0x4C->0x50 & 0x10000)
  SceInt32 unk_0x30;
  char unk_0x34; //unused?
  SceInt8 unk_0x35;
  SceInt8 unk_0x36;
  SceInt8 unk_0x37;
  SceInt8 unk_0x38; //Zero'ed during constructor
  SceInt8 unk_0x39; //^ doing *(SceInt32*)(&file->unk_0x38) = 0;
  SceInt8 unk_0x3A; //^
  SceInt8 unk_0x3B; //^
  SceInt8 unk_0x3C;
  SceInt8 unk_0x3D;
  SceInt8 unk_0x3E;
  SceInt8 unk_0x3F;
  char unk_0x40[8]; //unknown type - haven't seen this used yet
} SceUIDVfsFileObject;


typedef struct io_scheduler_item //size is 0x14 - allocated from SceIoScheduler heap
typedef struct SceVfsPath { //size is 0xC-bytes
{
char *name; // could be `const char *`?
  io_scheduler* unk_0; // parent
SceSize name_len;
  uint32_t unk_4; // 0
char *path; // could be `const char *`?
  uint32_t unk_8; // 0
} SceVfsPath;
  uint32_t unk_C; // 0
</source>
  uint32_t unk_10; // pointer to unknown module data section
}io_scheduler_item;


enum io_device_code
== Data segment layout ==
{
  Internal = 0x100,
  Game_Card = 0x201,
  Removable = 0x202,
  Host_File_System = 0x300,
  Default = 0x0
};


typedef struct io_scheduler //size is 0xA8 - allocated from SceIoScheduler heap
{| class="wikitable"
{
|-
  io_device_code unk_0;
! Address !! Size !! Description
  io_scheduler_item* unk_4; //item 0
|-
  io_scheduler_item* unk_8; //item 1
| 0x0000 || 0x4 || unknown
  io_scheduler_item* unk_C; //item 2
|-
 
| 0x0004 || 0x8 || some index returned from initialization function 0xb645c7ef in SceThreadmgrForDriver
  io_scheduler_item* unk_10; //item 3
|-
  io_scheduler_item* unk_14; //item 4
| 0x0008 || 0x4 || unknown
  io_scheduler_item* unk_18; //item 5
|-
  io_scheduler_item* unk_1C; //item 6
| 0x000C || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
 
|-
  io_scheduler_item* unk_20; //item 7
| 0x00010 || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
  io_scheduler_item* unk_24; //item 8
|-
  io_scheduler_item* unk_28; //item 9
| 0x00014 || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
  io_scheduler_item* unk_2C; //item 10
|-
 
| 0x00018 || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
  io_scheduler_item* unk_30; //item 11
|-
  io_scheduler_item* unk_34; //item 12
| 0x0001C || 0x4 || unknown
  io_scheduler_item* unk_38; //item 13
|-
  io_scheduler_item* unk_3C; //item 14
| 0x0020 || 0x4 || <code>SceIofileDevWaitForVC</code> event flag SceUID
  io_scheduler_item* unk_40; //item 15
|-
 
| 0x0024 || 0x4 || unknown
  uint32_t unk_44; // flag1 0x40000 or 0x00
|-
  uint32_t unk_48; // flag2 0x40000 or 0x00
| 0x0028 || 0x4 || <code>SceIofileDevWaitForSD</code> event flag SceUID
  io_scheduler_dispatcher* unk_4C; // parent
|-
 
| 0x002C || 0x4 || pointed by <code>vfs_mount_cc</code> for <code>SceIofileDevWaitForSD</code>
  SceUID unk_50; //SceIoScheduler mutex
|-
  SceUID unk_54; //SceIoScheduler cond
| 0x0030 || 0x4 || <code>SceIofileDevWaitForMC</code> event flag SceUID
 
|-
  char unk_58; // 0
| 0x0034 || 0x4 || unknown
  char unk_59; // 0
|-
  char unk_5A; // 0
| 0x0038 || 0x4 || pointed by <code>vfs_mount_cc</code> for <code>SceIofileDevWaitForVC</code>
  char unk_5B; // 0
|-
 
| 0x003C || 0x4 || pointed by <code>vfs_mount_cc</code> for <code>SceIofileDevWaitForMC</code>
  uint32_t unk_5C; // 0
|-
 
| 0x0040 || 0x10 || unknown
  //this is probably separate structure
|-
  SceUID unk_60; //SceIoSchedWorker thread id
| 0x0050 || 0x4 || address of some callback function called in all vfs operations
  SceUID unk_64; //SceIoScheduler mutex from self
|-
  SceUID unk_68; //SceIoScheduler cond from self
| 0x0054 || 0x4 || <code>SceIofile</code> heap SceUID
  io_scheduler* unk_6C; //pointer to self
|-
 
| 0x0058 || 0x80 || unknown
  uint32_t unk_70; // 0
|-
  uint16_t unk_74; // 0
| 0x00D8 || 0x4 || <code>SceIoVfsHeap</code> heap SceUID
  uint16_t unk_76; // 0
|-
  uint32_t unk_78; // 0
| 0x00DC || 0x4 || <code>SceIoFileDebug</code> memblock SceUID
  uint32_t unk_7C; // 0
|-
 
| 0x00E0 || 0x3C || unknown
  uint32_t unk_80; //
|-
  uint32_t unk_84; // some flag
| 0x011C || 0x4 || ctx_11C* pointer to structure
 
|-
  uint32_t unk_88; //0x80
| 0x0120 || 0x4C || unknown
  uint32_t unk_8C; //0x80
|-
 
| 0x016C || 0x10 || char* static_buffers[4] - static buffers used instead of SceIoVfsHeap
  uint32_t unk_90; //0x80
|-
  uint32_t unk_94; //0x80
| 0x017C || 0x2C || <code>SceClass</code> for SceVfsFile
  uint32_t unk_98; //0x80
|-
  uint32_t unk_9C; //0x80
| 0x01A8 || 0x1500 || array of 96 elements of vfs_node_info
 
  uint32_t unk_A0; // 0
  uint32_t unk_A4; // 0
 
}io_scheduler;
 
//context that is used for dispatching i/o operations
 
typedef struct io_context //size is 0xB8
{
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
 
  uint32_t unk_10;
  uint32_t unk_14;
  uint32_t unk_18;
  uint32_t unk_1C;
 
  uint32_t unk_20;
  uint32_t io_op_index; // 0x24 - check "i/o operation index" section
  uint32_t unk_28;
  io_device_code device_code; // 0x2C
 
  char async; //0x30
  char unk_31;
  char unk_32;
  char unk_33
  uint32_t pid; //0x34 = ksceKernelGetProcessId
  uint32_t tid; //0x38 = ksceKernelGetThreadId
  uint32_t unk_3C; // = SceThreadmgrForDriver_fa54d49a
 
  uint32_t unk_40; // = SceThreadmgrForDriver_332e127c
  uint32_t cpu_mask; // 0x44 = ksceKernelGetThreadCpuAffinityMask
  uint32_t thread_priority; //0x48 = ksceKernelGetThreadCurrentPriority
  uint32_t unk_4C;
 
  uint32_t unk_50;
  uint32_t unk_54;
  uint32_t unk_58;
  uint16_t state; // 0x5C = bit 16 of state where state = (MRC p15, 0, state, c13, c0, 3)
  uint16_t unk_5E;
 
  uint32_t unk_60;
  uint32_t unk_64;
  uint32_t unk_68;
  uint32_t unk_6C;
 
  uint32_t unk_70;
  uint32_t unk_74;
  uint32_t unk_78; // = -1
  uint32_t unk_7C; // = -1
 
  uint32_t op_result; // 0x80 - result of i/o operation
  uint32_t unk_84;
  void* unk_88;
  uint32_t unk_8C;
 
  uint32_t unk_90;
  uint32_t unk_94;
  uint32_t unk_98;
  uint32_t unk_9C;
 
  uint32_t unk_A0;
  uint32_t unk_A4;
  uint32_t unk_A8;
  uint32_t unk_AC;
 
  uint64_t unk_B0; // = ksceKernelGetSystemTimeWide
 
}io_context;
 
</source>
 
== Data segment layout ==
 
{| class="wikitable"
|-
|-
! Address !! Size !! Description
| 0x16A8 || 0x4 || <code>SceVfsRfsLock</code> fast mutex
|-
|-
| 0x0000 || 0x4 || unknown
| 0x16AC || 0x3C || unknown
|-
|-
| 0x0004 || 0x8 || pointer to <code>SceIofile</code> heap SceUID at offset 0x54
| 0x16E8 || 0x2C || <code>SceClass</code> for SceIoMountEvent
|-
|-
| 0x0008 || 0x4 || unknown
| 0x1714 || 0xC || unknown
|-
|-
| 0x000C || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
| 0x1720 || 0x04 || cond_ctx* pointer to the linked list
|-
|-
| 0x00010 || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
| 0x1724 || 0x4 || <code>SceIoScheduler</code> heap SceUID
|-
|-
| 0x00014 || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
| 0x1728 || 0xB8 || <code>io_scheduler_dispatcher</code> structure
|-
|-
| 0x00018 || 0x4 || flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
| 0x17E0 || 0x2C || <code>SceClass</code> for SceIoAsyncEvent - used in all async i/o operations
|-
|-
| 0x0001C || 0x4 || unknown
| 0x180C || 0xC || unknown
|-
|-
| 0x0020 || 0x4 || <code>SceIofileDevWaitForVC</code> event flag SceUID
| 0x1818 || 0x2C || <code>SceClass</code> for SceIoErrorEvent
|-
|-
| 0x0024 || 0x4 || unknown
| 0x1844 || 0xC || unknown
|-
|-
| 0x0028 || 0x4 || <code>SceIofileDevWaitForSD</code> event flag SceUID
| 0x1850 || 0x4 || <code>SceIofileDaemonLock</code> fast mutex
|-
|-
| 0x002C || 0x4 || unknown
| 0x1854 || 0x40 || unknown
|-
|-
| 0x0030 || 0x4 || <code>SceIofileDevWaitForMC</code> event flag SceUID
| 0x1894 || 0x4 || <code>SceIofile</code> fast mutex
|-
|-
| 0x0034 || 0x1C || unknown
| 0x1898 || 0x7C || unknown
|-
|-
| 0x0050 || 0x4 || address of some callback function called in all vfs operations
| 0x1914 || 0x4 || function pointer t_1914_callback
|-
|-
| 0x0054 || 0x4 || <code>SceIofile</code> heap SceUID
| 0x1918 || 0x4 || <code>SceIofileFlock</code> fast mutex
|-
|-
| 0x0058 || 0x80 || unknown
| 0x191C || 0x44 || unknown
|-
|-
| 0x00D8 || 0x4 || <code>SceIoVfsHeap</code> heap SceUID
| 0x1960 || 0x4 || some i/o flag
|-
|-
| 0x00DC || 0x4 || <code>SceIoFileDebug</code> memblock SceUID
| 0x1964 || 0x4 || flag that indicates that any i/o operation happened 1/0. changed by each i/o operation. cleared on suspend.
|-
|-
| 0x00E0 || 0x3C || unknown
| 0x1968 || 0x18 || unknown
|-
|-
| 0x011C || 0x4 || ctx_11C* pointer to structure
| 0x1980 || 0x4 || counter of not finished i/o operations. changed by each i/o operation.
|-
|-
| 0x0120 || 0x4C || unknown
| 0x1984 || 0xC || unknown
|-
|-
| 0x016C || 0xC || structure used together with 19F8
| 0x1990 || 0x4 || <code>SceVfsMntlistLock</code> fast mutex
|-
|-
| 0x0178 || 0x30 || unknown
| 0x1994 || 0x3C || unknown
|-
|-
| 0x01A8 || 0x1500 || array of 96 elements of vfs_node_info
| 0x19D0 || 0x4 || vfs_mount* singly linked list
|-
|-
| 0x16A8 || 0x4 || <code>SceVfsRfsLock</code> fast mutex
| 0x19D4 || 0x1C || structure ctx_19D4
|-
|-
| 0x16AC || 0x74 || unknown
| 0x19F0 || 0x8 || unknown
|-
|-
| 0x1720 || 0x04 || cond_ctx* pointer to the linked list
| 0x19F8 || 0x4 || address used for sceKernelCpuLockSuspendIntrStoreLRForDriver to lock 016C
|-
|-
| 0x1724 || 0x4 || <code>SceIoScheduler</code> heap SceUID
| 0x19FC || 0x4 || vfs_mount* pointer
|-
|-
| 0x1728 || 0xB8 || <code>io_scheduler_dispatcher</code> structure
| 0x1A00 || 0x4 || <code>SceVfsNcacheLock</code> fast mutex
|-
|-
| 0x17E0 || 0x70 || unknown
| 0x1A04 || 0x40 || unknown
|-
|-
| 0x1850 || 0x4 || <code>SceIofileDaemonLock</code> fast mutex
| 0x1A44 || 0x4 || address used for sceKernelCpuLockSuspendIntrStoreLRForDriver
|-
|-
| 0x1854 || 0x40 || unknown
| 0x1A48 || 0x4 || unknown
|-
|-
| 0x1894 || 0x4 || <code>SceIofile</code> fast mutex
| 0x1A4C || 0x4 || <code>SceVfsLock</code> fast mutex
|-
|-
| 0x1898 || 0x80 || unknown
| 0x1A50 || 0x3C || unknown
|-
|-
| 0x1918 || 0x4 || <code>SceIofileFlock</code> fast mutex
| 0x1A8C || 0x04 || <code>SceIofilemgrMount</code> thread SceUID
|-
|-
| 0x191C || 0x44 || unknown
| 0x1A90 || 0x700 || array of 32 elements of vfs_mount_point_info
|-
|-
| 0x1960 || 0x4 || some i/o flag
| 0x2190 || 0x4 || <code>SceIofilemgrMount</code> cond SceUID
|-
|-
| 0x1964 || 0x4 || flag that indicates that any i/o operation happened 1/0. changed by each i/o operation. cleared on suspend.
| 0x2194 || 0x4 || <code>SceIofilemgrMount</code> SceUID mutexid
|-
|-
| 0x1968 || 0x18 || unknown
| 0x2198 || 0x4 || flag that indicates that IoSchedulerDispatcher functionality is initialized 1/0
|-
|-
| 0x1980 || 0x4 || counter of not finished i/o operations. changed by each i/o operation.
| 0x219C || 0x4 || unknown
|-
|-
| 0x1984 || 0xC || unknown
| 0x21A0 || 0x40 || unknown
|-
|-
| 0x1990 || 0x4 || <code>SceVfsMntlistLock</code> fast mutex
| 0x21E0 || 0x20 || unknown
|-
|-
| 0x1994 || 0x3C || unknown
| 0x2200 || 0x04 || <code>SceIofilemgrDaemon</code> thread SceUID
|-
|-
| 0x19D0 || 0x4 || vfs_mount* singly linked list
| 0x2204 || 0x8 || unknown
|-
|-
| 0x19D4 || 0x1C || structure ctx_19D4
| 0x220C || 0x4 || <code>SceIofilemgrDaemon</code> event flag SceUID
|-
|-
| 0x19F0 || 0x8 || unknown
| 0x2210 || 0x4 || void* to heap alloc of size 0x100
|-
|-
| 0x19F8 || 0x4 || address used for ksceKernelCpuSuspendIntr
| 0x2214 || 0x4 || void* to heap alloc of size 0x100
|-
|-
| 0x19FC || 0x4 || unknown
| 0x2218 || 0x4 || = 3
|-
|-
| 0x1A00 || 0x4 || <code>SceVfsNcacheLock</code> fast mutex
| 0x221C || 0x20 || [[SceIofilemgr#sceVfsAddVfsForDriver|vfs_add_data]] <code>dummy_ttyp_dev_fs</code> node
|-
|-
| 0x1A04 || 0x40 || unknown
|}
 
== SceIofilemgrForDriver ==
 
=== sceVfsOpDevctlForDriver ===
{| class="wikitable"
|-
|-
| 0x1A44 || 0x4 || address used for ksceKernelCpuSuspendIntr
! Version !! NID
|-
|-
| 0x1A48 || 0x4 || unknown
| 0.990-3.60 || 0xB07B307D
|}
 
=== sceVfsOpDecodePathElemForDriver ===
{| class="wikitable"
|-
|-
| 0x1A4C || 0x4 || <code>SceVfsLock</code> fast mutex
! Version !! NID
|-
|-
| 0x1A50 || 0x3C || unknown
| 0.990-3.60 || 0xF7DAC0F5
|}
 
=== sceVopOpenForDriver ===
{| class="wikitable"
|-
|-
| 0x1A8C || 0x04 || <code>SceIofilemgrMount</code> thread SceUID
! Version !! NID
|-
|-
| 0x1A90 || 0x700 || array of 32 elements of vfs_mount_point_info
| 0.990-3.60 || 0x76B79BEC
|}
 
=== sceVopCreateForDriver ===
{| class="wikitable"
|-
|-
| 0x2190 || 0x4 || <code>SceIofilemgrMount</code> cond SceUID
! Version !! NID
|-
|-
| 0x2194 || 0x4 || SceUID mutexid
| 0.990-3.60 || 0x9E347C7D
|}
 
=== sceVopCloseForDriver ===
{| class="wikitable"
|-
|-
| 0x2198 || 0x4 || flag that indicates that IoSchedulerDispatcher functionality is initialized 1/0
! Version !! NID
|-
| 0x219C || 0x4 || unknown
|-
| 0x21A0 || 0x40 || unknown
|-
| 0x21E0 || 0x20 || unknown
|-
| 0x2200 || 0x04 || <code>SceIofilemgrDaemon</code> thread SceUID
|-
| 0x2204 || 0x8 || unknown
|-
| 0x220C || 0x4 || <code>SceIofilemgrDaemon</code> event flag SceUID
|-
| 0x2210 || 0x4 || void* to heap alloc of size 0x100
|-
| 0x2214 || 0x4 || void* to heap alloc of size 0x100
|-
| 0x2218 || 0x4 || = 3
|-
| 0x221C || 0x20 || [[SceIofilemgr#sceVfsAddVfs|vfs_add_data]] <code>dummy_ttyp_dev_fs</code> node
|-
|-
| 0.990-3.60 || 0x40944C2E
|}
|}


== SceIofilemgrForDriver ==
In logs it is sceVopClsoe.


=== sceIoMountForDriver ===
=== sceVopLookupForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.931-3.60 || 0xA5A6A55C
| 0xD070BC48
|}
|}


operation index 1 in <code>cond_ctx</code>
Temp name was sceVfsNodeInitializePartitionForDriver.


<source lang="c">
<source lang="C">int sceVopLookupForDriver(SceVfsNode *pNode, SceVfsNode **ppNewNode, SceVfsPath *path_info, SceUInt32 flags);</source>
//intermediate function between sceAppMgrGameDataMountForDriver and sceVfsMount
int sceIoMountForDriver(int vshMountId);
</source>


=== sceIoUmountForDriver ===
=== sceVopReadForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.990-3.60 || 0x570388A5
| 0x20574100
|}
|}


operation index 2 in <code>cond_ctx</code>
=== sceVopWriteForDriver ===
 
<source lang="c">
//intermediate function between sceAppMgrUmountForDriver and sceVfsUnmount
int sceIoUmountForDriver(int vshMountId, int unk1, int unk2, int unk3);
</source>
 
=== scePfsMgrVfsMountForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.990-3.60 || 0x9A68378D
| 0xFEEE44A9
|}
|}


operation index 3 in <code>cond_ctx</code>
=== sceVopLseekForDriver ===
 
<source lang="c">
//this function can be used with PFS_GDSD_INF filesystem
int scePfsMgrVfsMountForDriver(int unk0, int unk1, int unk2);
</source>
 
=== scePfsMgrVfsUmountForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.990-3.60 || 0xB2B13818
| 0xD220539D
|}
|}


operation index 4 in <code>cond_ctx</code>
=== sceVopIoctlForDriver ===
 
<source lang="c">
int scePfsMgrVfsUmountForDriver(int unk0, int unk1, int unk2);
</source>
 
=== sceVfsNodeWaitEventFlag ===
 
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.990-3.60 || 0x333C904D
| 0xAA45010B
|}
|}


calls <code>ksceKernelWaitEventFlag</code> using <code>event_flag_SceVfsVnode</code> from <code>vfs_node</code>
=== sceVopRemoveForDriver ===
 
<source lang="C">int sceVfsNodeWaitEventFlag(vfs_node* node)</source>
 
=== sceVfsNodeSetEventFlag ===
 
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xDC1E7EE4
| 0x6048F245
|}
|}


calls <code>ksceKernelSetEventFlag</code> using <code>event_flag_SceVfsVnode</code> from <code>vfs_node</code>
=== sceVopMkdirForDriver ===
 
<source lang="C">int sceVfsNodeSetEventFlag(vfs_node* node)</source>
 
=== sceVfsUnmount ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x9C7E7B76
|-
|-
| 3.60
| 0.990-3.60 || 0x2F3F8C70
| 0x9C7E7B76
|}
|}
<source lang="c">
struct vfs_unmount_data
{
    const char *mountpoint;
    int flags;
};
int sceVfsUnmount(struct vfs_unmount_data *data);
</source>


=== sceVfsDeleteVfs ===
=== sceVopRmdirForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x9CBFA725
|-
|-
| 3.60
| 0.990-3.60 || 0x1D551105
| 0x9CBFA725
|}
|}
<source lang="c">
int sceVfsDeleteVfs(const char *name, void **deleted_node);
</source>


=== sceVfsAddVfs ===
=== sceVopDopenForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x673D2FCD
|-
|-
| 3.60
| 0.990-3.60 || 0x00C9C2DD
| 0x673D2FCD
|}
|}
<source lang="c">
int sceVfsAddVfs(struct vfs_add_data *data);
</source>


=== sceVfsMount ===
=== sceVopDcloseForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0xB62DE9A6
|-
|-
| 3.60
| 0.990-3.60 || 0x1350F5C7
| 0xB62DE9A6
|}
|}
<source lang="c">
int sceVfsMount(struct vfs_mount_point_info_base* data);
</source>


=== sceVfsGetNewNode ===
=== sceVopDreadForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 1.69
| 0.990-3.60 || 0x77584C8F
| 0xD60B5C63
|-
| 3.60
| 0xD60B5C63
|}
|}
<source lang="c">
int sceVfsGetNewNode(vfs_mount* mount, node_ops2 *ops, int unused, vfs_node **node);
</source>
=== sceIoDreadForDriver ===


=== sceVopGetstatForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x20CF5FC7
|-
|-
| 3.60
| 0.990-3.60 || 0x50A63ACF
| 0x20CF5FC7
|}
|}
Call interface is same as <code>sceIoDread</code>
<source lang="C">int sceIoDreadForDriver(SceUID fd, SceIoDirent *dir);</source>
=== sceIoDreadForDriver_2 ===


=== sceVopChstatForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.990-3.60 || 0x1974FA92
| 0x03051B02
|}
|}


Derived from i/o dispatcher, not from user function
=== sceVopRenameForDriver ===
 
Implementation is completely the same as sceIoDreadForDriver. The only difference is that st_attr in SceIoStat is not set.
 
<source lang="C">int sceIoDreadForDriver_2(SceUID fd, SceIoDirent *dir);</source>
 
=== sceIoWriteForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 1.69
| 0.990-3.60 || 0x36A794C7
| 0x21EE91F0
|-
| 3.60
| 0x21EE91F0
|}
|}
Call interface is same as <code>sceIoWrite</code>
<source lang="C">int sceIoWriteForDriver(SceUID fd, const void *data, SceSize size);</source>


=== sceIoDopenForDriver ===
=== sceVopPreadForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x463B25CC
|-
|-
| 3.60
| 0.990-3.60 || 0xABBC80E3
| 0x463B25CC
|}
|}
Call interface is same as <code>sceIoDopen</code>
<source lang="C">SceUID sceIoDopenForDriver(const char *dirname);</source>


=== sceIoLseekForDriver ===
=== sceVopPwriteForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x62090481
|-
|-
| 3.60
| 0.990-3.60 || 0xA53C040D
| 0x62090481
|}
|}
Call interface is same as <code>sceIoLseek</code>
<source lang="C"> SceOff sceIoLseekForDriver(SceUID fd, SceOff offset, int whence);</source>


=== sceIoOpenForDriver ===
=== sceVopInactiveForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 1.69
| 0.990-3.60 || 0x8FB94521
| 0x75192972
|}
 
=== sceVopLinkForDriver ===
{| class="wikitable"
|-
|-
| 3.60
! Version !! NID
| 0x75192972
|-
| 3.60 || 0x942AA61F
|}
|}
Call interface is same as <code>sceIoOpen</code>


<source lang="C">SceUID sceIoOpenForDriver(const char *file, int flags, SceMode mode);</source>
Temp name was sceVop_unk_offset_0x54_ForDriver.


=== sceIoOpenForDriver_2 ===
=== sceVopUnlinkForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x0D8A806E
| 0xC3D34965
|}
|}


This is a wrapper for <code>sceIoOpenForDriver</code>
Temp name was sceVop_unk_offset_0x58_ForDriver.


Pid is used for <code>sceFiosKernelOverlayResolveSyncForDriver</code>
=== sceVopSyncForDriver ===
 
<source lang="C">SceUID sceIoOpenForDriver_2(SceUID pid, const char *file, int flags, SceMode mode);</source>
 
=== sceIoChstatForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x7D42B8DC
|-
|-
| 3.60
| 0.990-3.60 || 0x9CD96406
| 0x7D42B8DC
|}
|}
Call interface is same as <code> sceIoChstat </code>
<source lang="C">int sceIoChstatForDriver(const char *file, SceIoStat *stat, int bits);</source>


=== sceIoChstatForDriver_2 ===
=== sceVopFgetstatForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x1DBCBB01
| 0x1F98BD50
|}
|}
Derived from i/o dispatcher, not from user function


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


<source lang="C">int sceIoChstatForDriver_2(const char *file, SceIoStat *stat, int bits);</source>
<source>int sceVopFgetstatForDriver(SceVfsNode *pNode, SceVfsFileObject *pVfsFileObject, SceIoStat *stat);</source>


=== sceIoGetstatForDriver ===
=== sceVopFchstatForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 1.69
| 3.60 || 0x082AFD7F
| 0x75C96D25
|-
| 3.60
| 0x75C96D25
|}
|}
Call interface is same as <code>sceIoGetstat</code>


<source lang="C">int sceIoGetstatForDriver(const char *file, SceIoStat *stat);</source>
Temp name was sceVopChstatByFdForDriver.
 
<source>int sceVopFchstatForDriver(SceVfsNode *pNode, SceVfsFileObject *pObject, SceIoStat *stat, int bit);</source>


=== sceIoGetstatForDriver_2 ===
=== sceVopWhiteoutForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.996-3.60 || 0xF53399BC
| 0xD6503624
|}
|}
Derived from i/o dispatcher, not from user function


Implementation is completely the same as sceIoGetstatForDriver. The only difference is that st_attr in SceIoStat is not set.
Temp name was sceVopTrashForDriver.


<source lang="C">int sceIoGetstatForDriver_2(const char *file, SceIoStat *stat);</source>
Move target node entry file/directory to <code>xx0:/SceIoTrash/</code>.


=== sceIoMkdirForDriver ===
=== sceVopCleanupForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 1.69
| 3.60 || 0x0F7E1718
| 0x7F710B25
|-
| 3.60
| 0x7F710B25
|}
|}
Call interface is same as <code>sceIoMkdir</code>


<source lang="C">int sceIoMkdirForDriver(const char *dir, SceMode mode);</source>
Temp name was sceVop_unk_offset_0x6C_ForDriver.


=== sceIoReadForDriver ===
=== sceVopZerofillForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0xE17EFC03
|-
|-
| 3.60
| 0.996-3.60 || 0xEEAE8B51
| 0xE17EFC03
|}
|}
Call interface is same as <code>sceIoRead</code>


<source lang="C">int sceIoReadForDriver(SceUID fd, void *data, SceSize size);</source>
Temp name was sceVop_unk_offset_0x70_ForDriver.


=== sceIoCloseForDriver ===
=== vfsIsLockedMntForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 1.69
| 3.60 || 0xC468B5EF
| 0xF99DD8A3
|-
| 3.60
| 0xF99DD8A3
|}
|}
Call interface is same as <code>sceIoClose</code>


<source lang="C">int sceIoCloseForDriver(SceUID fd);</source>
some thread op


=== sceIoRenameForDriver ===
=== vfsBuffCacheCtlForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0xDC0C4997
|-
|-
| 3.60
| 3.60 || 0xA7020B0D
| 0xDC0C4997
|}
|}
Call interface is same as <code>sceIoRename</code>


<source lang="C">int sceIoRenameForDriver(const char *oldname, const char *newname);</source>
Configures the IO Buffer Cache for vp
 
<source>int vfsBuffCacheCtlForDriver(SceVfsNode *vp, int data_cache_size, int way, int line_size,int io_size);</source>


=== sceIoRemoveForDriver ===
=== vfsBuffCacheFreeForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
| 1.69
| 0x0D7BB3E1
|-
|-
| 3.60
| 3.60 || 0xD6AB5E4B
| 0x0D7BB3E1
|}
|}
Call interface is same as <code>sceIoRemove</code>


<source lang="C">int sceIoRemoveForDriver(const char *file);</source>
some node op


=== sceIoCancelForDriver ===
=== vfsLockVnodeForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.995-3.60 || 0xAA45010B
| 0x6D59658D
|}
|}
Derived from <code>sceIoCancel</code>


=== sceIoChstatAsyncForDriver ===
Temp name was sceVfsNodeWaitEventFlagForDriver, sceVfsLockVnodeForDriver.
 
calls <code>sceKernelWaitEventFlagForDriver</code> using <code>event_flag_SceVfsVnode</code> from <code>vfs_node</code>
 
1. If the ownerId of the locked vnode is -1 (no anyone), set own thread as owner and leave the function.
 
2. If the ownerId is already mine, increment recursiveCount and leave the function.
 
3. If we get here we increment waiter.
 
4. Just to be sure, we do a check for 1 again and if the ownerId is -1, we set the ownerId to ourselves in the thread, then decrement waiter and leave the function.
 
5. If you've come this far, wait for the other owner to unlock the vnode with sceKernelWaitEventFlag.
 
6. Decrement the waiter and set the ownerId to its own thread and leave the function.
 
<source lang="C">int vfsLockVnodeForDriver(vfs_node *node);</source>
 
=== vfsUnlockVnodeForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.990-3.60 || 0x6048F245
| 0x7EC442BF
|}
|}
Derived from <code>_sceIoChstatAsync</code>


=== sceIoChstatByFdAsyncForDriver ===
Temp name was sceVfsNodeSetEventFlagForDriver, sceVfsUnlockVnodeForDriver.
{| class="wikitable"
 
|-
calls <code>sceKernelSetEventFlagForDriver</code> using <code>event_flag_SceVfsVnode</code> from <code>vfs_node</code>
! Version
 
! NID
1. The function fails if the ownerId is not its own thread.
|-
 
| 3.60
2. If recursiveCount is not 0, decrement recursiveCount and leave the function.
| 0xEC974400
 
|}
3. If recursiveCount is 0, checks waiter value.
Derived from <code>sceIoChstatByFdAsync</code>
 
4. If waiter is not 0, set ownerId to 0xfffffffd, then notify other waiting threads of unlock with sceKernelSetEventFlag and leave the function.
 
5. Check ownerId and waiter again and execute 4 if there is a discrepancy with the first check.
 
6. Set waiter to 0 and ownerId to -1 and leave the function.
 
<source lang="C">int vfsUnlockVnodeForDriver(vfs_node* node);</source>


=== sceIoChstatByFdForDriver ===
=== vfsMountForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0xB62DE9A6
! NID
|-
| 3.60
| 0xDF57A75F
|}
|}
Derived from <code>_sceIoChstatByFd</code>


<source lang="C">int sceIoChstatByFdForDriver(SceUID uid, void *unk1, int unk2);</source>
This is a guessed name.
 
Temp name was sceVfsMountForDriver.
 
<source lang="C">int vfsMountForDriver(vfs_mount_point_info_base *mnt);</source>


=== sceIoCloseAsyncForDriver ===
=== vfsUmountForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 1.69-3.60 || 0x9C7E7B76
| 0x11C57CC6
|}
|}
Derived from <code>sceIoCloseAsync</code>


=== sceIoDevctlAsyncForDriver ===
Temp name was sceVfsUnmountForDriver.
 
<source lang="C">int vfsUmountForDriver(vfs_unmount_data *data);</source>
 
=== sceVfsAddVfsForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0x673D2FCD
! NID
|-
| 3.60
| 0xA9302946
|}
|}
Derived from <code>_sceIoDevctlAsync</code>


=== sceIoDevctlForDriver ===
Used by [[SceSdstor]], [[SceTty2uart]], [[SceKernelBlueScreenOfDeath]].
 
<source lang="C">int sceVfsAddVfsForDriver(vfs_add_data *data);</source>
 
=== sceVfsDeleteVfsForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 1.69-3.60 || 0x9CBFA725
| 0x16882FC4
|}
|}
Derived from <code>_sceIoDevctl</code>


=== sceIoDcloseForDriver ===
<source lang="C">int sceVfsDeleteVfsForDriver(const char *name, void **deleted_node);</source>
 
=== vfsMountForPFSForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xFEEE44A9
| 0x19C81DD6
|}
|}
Derived from <code>sceIoDclose</code>


<source lang="C">int sceIoDcloseForDriver(SceUID fd);</source>
Temp name was scePfsMgrVfsMountForDriver.
 
operation index 3 in <code>cond_ctx</code>
 
<source lang="C">
// this function can be used with PFS_GDSD_INF filesystem
int vfsMountForPFSForDriver(vfs_mount_point_info_base *mnt, int unk1, int unk2);
</source>


=== sceIoFlockForDriver ===
=== vfsUmountForPFSForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xD220539D
| 0x16336A0D
|}
|}
Derived from <code>sceIoFlockForSystem</code>


=== sceIoGetstatByFdAsyncForDriver ===
This is a guessed name.
 
Temp name was scePfsMgrVfsUmountForDriver.
 
operation index 4 in <code>cond_ctx</code>
 
<source lang="C">int vfsUmountForPFSForDriver(vfs_unmount_data* umnt, int unk1, int unk2);</source>
 
=== vfsLockMntForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 3.60 || 0x6B3CA9F7
! NID
|-
| 3.60
| 0x0FEE1238
|}
|}
Derived from <code>sceIoGetstatByFdAsync</code>


=== sceIoGetstatByFdForDriver ===
Temp name was sceVfsLockMntForDriver.
 
=== vfsUnlockMntForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 3.60 || 0xDC2D8BCE
! NID
|-
| 3.60
| 0x462F059B
|}
|}
Derived from <code>_sceIoGetstatByFd</code>


<source lang="C">int sceIoGetstatByFdForDriver(SceUID fd, SceIoStat *stat);</source>
Temp name was sceVfsUnlockMntForDriver.


=== sceIoGetstatAsyncForDriver ===
=== vfsGetNewVnodeForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0xD60B5C63
! NID
|-
| 3.60
| 0x94A5304A
|}
|}
Derived from <code>_sceIoGetstatAsync</code>


=== sceIoIoctlAsyncForDriver ===
Temp name was sceVfsGetNewVnodeForDriver.
 
<source lang="C">int vfsGetNewVnodeForDriver(vfs_mount *mnt, node_ops2 *ops, int unused, vfs_node **node);</source>
 
=== vfsFreeVnodeForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0x21D57633
! NID
|-
| 3.60
| 0xB761E91B
|}
|}
Derived from <code>_sceIoIoctlAsync</code>


=== sceIoIoctlForDriver ===
Temp name was sceVfsFreeVnodeForDriver.
 
=== vfsIsOwnerForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xC3AE93A2
| 0x161CD33F
|}
|}
Derived from <code>_sceIoIoctl</code>


<source lang="C">int sceIoIoctlForDriver(SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen);</source>
This is a guessed name.
 
Temp name was sceIoComparisonCurrentThreadIdForDriver.
 
<source lang="C">SceBool vfsIsOwnerForDriver(void *vp);</source>


=== sceIoLseekAsyncForDriver ===
=== vfsGetVnodeNameForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0xAA253B68
! NID
|-
| 3.60
| 0x541BAABD
|}
|}
Derived from <code>_sceIoLseekAsync</code>


=== sceIoMkdirAsyncForDriver ===
Temp name was sceVfsGetVnodeNameForDriver.
 
<source lang="C">int vfsGetVnodeNameForDriver(SceVfsNode *vp, char *name, SceSize n, SceSize *result);</source>
 
=== vfsAllocateFileForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.995-3.60 || 0xBBAC1751
| 0x27003443
|}
|}
Derived from <code>_sceIoMkdirAsync</code>


=== sceIoOpenAsyncForDriver ===
Temp name was sceVfsAllocateFileForDriver.
 
Creates a <code>SceUIDVfsFileClass</code> object and returns UID and pointer to created object.
 
<source lang="C">
// type of a1 is unknown for now - at least 0x98 bytes wide
 
// FW 0.995
SceUID vfsAllocateFileForDriver(void *vp, SceUIDVfsFileObject **ppFile);
 
// FW 3.60
// If name is NULL, default name (same as 0.995, "SceVfsFile") is used as object name
// Else, name will be created with snprintf("file %s %s", something_from_a1, name);
SceUID vfsAllocateFileForDriver(void *vp, SceVfsFileObject **ppFile, const char *name);
</source>
 
=== vfsAllocateFileDummyForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xCDF3EF52
| 0x451001DE
|}
|}
Derived from <code>_sceIoOpenAsync</code>


=== sceIoPreadAsyncForDriver ===
This is a guessed name.
 
<source lang="C">SceUID vfsAllocateFileDummyForDriver(int flags, SceBool is_dir, const char *name);</source>
 
=== vfsFreeFileForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0xC85E33A2
! NID
|-
| 3.60
| 0x64A46A2C
|}
|}
Derived from <code>_sceIoPreadAsync</code>


=== sceIoPreadForDriver ===
Temp name was sceVfsFreeFileForDriver.
 
Frees a file created with [[SceIofilemgr#vfsAllocateFileForDriver|vfsAllocateFileForDriver]].
 
<source lang="C">SceInt32 vfsFreeFileForDriver(void *vp, SceUID file_uid);</source>
 
=== vfsRmdevForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x69A7E076
| 0x2A17515D
|}
|}
Derived from <code>_sceIoPread</code>


<source lang="C">
Temp name was sceVfsRmdevForDriver.
//returns number of read bytes
int sceIoPreadForDriver(SceUID fd, char* buffer, SceSize size, int ignored, int offsetLo, int offsetHi)
</source>


=== sceIoPwriteAsyncForDriver ===
=== vfsOpenForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x0E518FA9
| 0x202CDDE3
|}
|}
Derived from <code>_sceIoPwriteAsync</code>


=== sceIoPwriteForDriver ===
Temp name was t_sceIoOpenForDriver, sceVfsOpenForDriver.
 
thread callback for <code>sceIoOpenForDriver</code>
 
<source lang="C">
typedef struct SceVfsOpenArgs {
  const char *filename;
  int flag;
  SceIoMode mode;
} SceVfsOpenArgs;
 
SceUID vfsOpenForDriver(SceVfsOpenArgs *argp);
</source>
 
=== vfsCloseForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x1AE14011
| 0x5F1512C8
|}
|}
Derived from <code>_sceIoPwrite</code>


=== sceIoReadAsyncForDriver ===
Temp name was t_sceIoCloseForDriver, sceVfsCloseForDriver.
 
thread callback for <code>sceIoCloseForDriver</code>
 
<source lang="C">
typedef struct SceVfsCloseArgs {
  SceUID fd;
} SceVfsCloseArgs;
 
int vfsCloseForDriver(SceVfsCloseArgs *argp);
</source>
 
=== vfsReadForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x809892C1
| 0x69047C81
|}
|}
Derived from <code>sceIoReadAsync</code>


=== sceIoRemoveAsyncForDriver ===
Temp name was t_sceIoReadForDriver, sceVfsReadForDriver.
 
thread callback for <code>sceIoReadForDriver</code>
 
<source lang="C">
typedef struct SceVfsReadArgs {
  SceUID fd;
  void *data;
  SceSize size;
} SceVfsReadArgs;
 
int vfsReadForDriver(SceVfsReadArgs *argp);
</source>
 
=== vfsWriteForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x8598ADC3
| 0xF9D6507D
|}
|}
Derived from <code>_sceIoRemoveAsync</code>


=== sceIoRenameAsyncForDriver ===
Temp name was t_sceIoWriteForDriver, sceVfsWriteForDriver.
{| class="wikitable"
 
|-
thread callback for <code>sceIoWriteForDriver</code>
! Version
 
! NID
<source lang="C">
|-
typedef struct SceVfsWriteArgs {
| 3.60
  SceUID fd;
| 0xAACBC47A
  const void *data;
|}
  SceSize size;
Derived from <code>_sceIoRenameAsync</code>
} SceVfsWriteArgs;


=== sceIoRmdirAsyncForDriver ===
int vfsWriteForDriver(SceVfsWriteArgs *argp);
{| class="wikitable"
</source>
|-
! Version
! NID
|-
| 3.60
| 0xF5B0B36C
|}
Derived from <code>_sceIoRmdirAsync</code>


=== sceIoRmdirForDriver ===
=== vfsIoctlForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xC1DD4317
| 0x1CC9C634
|}
|}
Derived from <code>_sceIoRmdir</code>


<source lang="C">int sceIoRmdirForDriver(const char *path);</source>
This is a guessed name.


=== sceIoSyncByFdAsyncForDriver ===
Temp name was t_sceIoIoctlForDriver, sceVfsIoctlForDriver.
 
thread callback for <code>sceIoIoctlForDriver</code>
 
<source lang="C">
typedef struct SceVfsIoctlArgs {
  SceUID fd;
  unsigned int cmd;
  void *indata;
  int inlen;
  void *outdata;
  int outlen;
} SceVfsIoctlArgs;
 
int vfsIoctlForDriver(SceVfsIoctlArgs *argp);
</source>
 
=== vfsChstatForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xBCE4865B
| 0x041209CF
|}
|}
Derived from <code>sceIoSyncByFdAsync</code>


=== sceIoSyncByFdForDriver ===
Temp name was t_sceIoChstatForDriver, sceVfsChstatForDriver.
 
thread callback for <code>sceIoChstatForDriver</code>
 
<source lang="C">
typedef struct SceVfsChstatArgs {
  const char *path;
  const SceIoStat *stat;
  unsigned int cbit;
  uint32_t store_attr;
} SceVfsChstatArgs;
 
int vfsChstatForDriver(SceVfsChstatArgs *argp);
</source>
 
=== vfsChstatByFdForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x7517FE29
| 0x43170575
|}
|}
Derived from <code>sceIoSyncByFd</code>


=== sceIoSyncAsyncForDriver ===
Temp name was t_sceIoChstatByFdForDriver, sceVfsChstatByFdForDriver.
{| class="wikitable"
|-
! Version
! NID
|-
| 3.60
| 0x4F9EA8B0
|}
Derived from <code>_sceIoSyncAsync</code>


=== sceIoSyncForDriver ===
thread callback for <code>sceIoChstatByFdForDriver</code>
 
<source lang="C">
typedef struct SceVfsChstatByFdArgs {
  SceUID fd;
  const SceIoStat *buf,
  unsigned int cbit;
} SceVfsChstatByFdArgs;
 
int vfsChstatByFdForDriver(SceVfsChstatByFdArgs *args);
</source>
 
=== vfsPreadForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x0B54F9E0
| 0xDDF78594
|}
|}
Derived from <code>_sceIoSync</code>


=== sceIoWriteAsyncForDriver ===
Temp name was t_sceIoPreadForDriver, sceVfsPreadForDriver.
 
thread callback for <code>sceIoPreadForDriver</code>
 
<source lang="C">
typedef struct SceVfsPreadArgs {
  SceUID uid;
  void *data;
  SceSize size;
  int paddind; // unused
  SceOff offset;
} SceVfsPreadArgs;
 
int vfsPreadForDriver(SceVfsPreadArgs *argp);
</source>
 
=== vfsPwriteForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xE5DEA6B7
| 0xA1BD13D0
|}
|}
Derived from <code>sceIoWriteAsync</code>


=== sceIoGetProcessDefaultPriorityForSystem ===
Temp name was t_sceIoPwriteForDriver, sceVfsPwriteForDriver.
 
thread callback for <code>sceIoPwriteForDriver</code>
 
<source lang="C">
typedef struct SceVfsPwriteArgs {
  SceUID uid;
  const void *data;
  SceSize size;
  int padding;
  SceOff offset;
} SceVfsPwriteArgs;
 
int vfsPwriteForDriver(SceVfsPwriteArgs *argp);
</source>
 
=== vfsGetMntInfoForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xB987450D
| 0xCE397158
|}
|}


=== sceIoSetProcessDefaultPriorityForSystem ===
This is a guessed name.
{| class="wikitable"
 
|-
Temp name was sceIoGetMountInfoForDriver.
! Version
 
! NID
<source lang="C">int vfsGetMntInfoForDriver(void *mnt, SceIoMountInfo *pInfo);</source>
|-
| 3.60
| 0xABE65071
|}


=== sceIoDopenAsyncForDriver ===  
=== vfsGetMntListForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xC20C621C
| 0x72F06BDE
|}
|}


=== sceIoDcloseAsyncForDriver ===
This is a guessed name.
{| class="wikitable"
 
|-
Temp name was sceIoGetMountVectorForDriver.
! Version
! NID
|-
| 3.60
| 0xC08F199F
|}


=== sceIoDreadAsyncForDriver ===
<source lang="C">int vfsGetMntList(SceIoMount *pMount, SceUInt32 nMount, SceUInt32 *pnMount);</source>
{| class="wikitable"
|-
! Version
! NID
|-
| 3.60
| 0x5982B0E3
|}


=== t_sceIoOpenForDriver ===  
=== sceIoMountForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0xD070BC48
| 0x0E518FA9
|}
|}


thread callback for <code>sceIoOpenForDriver</code>
operation index 1 in <code>cond_ctx</code>


<source lang="C">
<source lang="C">
typedef struct sceIoOpenForDriver_args
// intermediate function between sceAppMgrGameDataMountForDriver and sceVfsMountForDriver
{
int sceIoMountForDriver(int vshMountId, const char *path, int flags, int unk3, int arg_0, int arg_4);
const char *file;
int flags;
SceMode mode;
}sceIoOpenForDriver_args;
 
SceUID t_sceIoOpenForDriver(sceIoOpenForDriver_args* args);
</source>
</source>


=== t_sceIoCloseForDriver ===  
=== sceIoUmountForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 3.60 || 0x20574100
| 0x1AE14011
|}
|}


thread callback for <code>sceIoCloseForDriver</code>
operation index 2 in <code>cond_ctx</code>


<source lang="C">
<source lang="C">
typedef struct sceIoCloseForDriver_args
// intermediate function between sceAppMgrUmountForDriver and sceVfsUnmountForDriver
{
int sceIoUmountForDriver(int vshMountId, int unk1, int unk2, int unk3);
  SceUID fd;
}sceIoCloseForDriver_args;
 
int t_sceIoCloseForDriver(sceIoCloseForDriver_args* args);
</source>
</source>


=== t_sceIoReadForDriver ===  
=== sceIoRmdevForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.990-3.60 || 0xA39A9CA7
! NID
|-
| 3.60
| 0x809892C1
|}
|}


thread callback for <code>sceIoReadForDriver</code>
Like sceIoRemove?


<source lang="C">
The difference with sceIoRemove is that sceIoRmdev seems to remove the entry to be deleted directly without moving it to SceIoTrash.
typedef struct sceIoReadForDriver_args
{
  SceUID fd;
  void *data;
  SceSize size;
}sceIoReadForDriver_args;


int t_sceIoReadForDriver(sceIoReadForDriver_args* args);
<source lang="C">int sceIoRmdevForDriver(const char *path, int flags, int a3, int a4);</source>
</source>


=== t_sceIoWriteForDriver ===
=== sceIoDelDrvForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 0.931 || 0xD51774E3
! NID
|-
|-
| 3.60
| 3.60 || not present
| 0x8598ADC3
|}
|}


thread callback for <code>sceIoWriteForDriver</code>
Example: "tty"
 
<source lang="C">int sceIoDelDrvForDriver(const char *drv);</source>


<source lang="C">
=== sceIoAddDrvForDriver ===
typedef struct sceIoWriteForDriver_args
{| class="wikitable"
{
! Version !! NID
  SceUID fd;
|-
  const void *data;
| 0.931 || 0x1D8AC9A7
  SceSize size;
|-
}sceIoWriteForDriver_args;
| 3.60 || not present
|}


int t_sceIoWriteForDriver(sceIoWriteForDriver_args* args);
<source lang="C">int sceIoAddDrvForDriver(const char **drv);</source>
</source>


=== t_sceIoIoctlForDriver ===
=== sceIoDreadForDriver ===
{| class="wikitable"
{| class="wikitable"
! Version !! NID
|-
|-
! Version
| 1.69-3.60 || 0x20CF5FC7
! NID
|-
| 3.60
| 0xC1DD4317
|}
|}


thread callback for <code>sceIoIoctlForDriver</code>
Call interface is same as <code>sceIoDread</code>.


<source lang="C">
<source lang="C">int sceIoDreadForDriver(SceUID fd, SceIoDirent *dir);</source>
typedef struct sceIoIoctlForDriver_args
{
  SceUID fd;
  unsigned int cmd;
  void *indata;
  int inlen;
  void *outdata;
  int outlen;
}sceIoIoctlForDriver_args;
 
SceOff t_sceIoLseekForDriver(sceIoIoctlForDriver* args);
</source>


=== t_sceIoChstatForDriver ===
=== sceIoDreadForVshbridgeForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.995-3.60 || 0x03051B02
| 0xBCE4865B
|}
|}


thread callback for <code>sceIoChstatForDriver</code>
Temp name was sceIoDreadForDriver_2. Derived from [[SceVshBridge#vshIoDread|_vshIoDread]].


<source lang="C">
Implementation is completely the same as sceIoDreadForDriver. The only difference is that st_attr in SceIoStat is not set.
typedef struct sceIoChstatForDriver_args
{
  const char *file;
  SceIoStat *stat;
  int bits;
  uint32_t store_attr;
}sceIoChstatForDriver_args;


SceOff t_sceIoChstatForDriver(sceIoChstatForDriver_args* args);
<source lang="C">int sceIoDreadForVshbridgeForDriver(SceUID fd, SceIoDirent *dir);</source>
</source>


=== t_sceIoChstatByFdForDriver ===
=== sceIoWriteForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 1.69-3.60 || 0x21EE91F0
| 0x7517FE29
|}
|}


thread callback for <code>sceIoChstatByFdForDriver</code>
Call interface is same as <code>sceIoWrite</code>


<source lang="C">
<source lang="C">int sceIoWriteForDriver(SceUID fd, const void *data, SceSize size);</source>
struct sceIoChstatByFdForDriver_args
{
  SceUID uid;
  void *unk1;
  int unk2;
};


int t_sceIoChstatByFdForDriver(sceIoChstatByFdForDriver_args* args);
=== sceIoDopenForDriver ===
</source>
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0x463B25CC
|}


== SceIofilemgrForDriver vfs callbacks ==
Call interface is same as <code>sceIoDopen</code>


Vfs callbacks are harder to reverse since it looks like not all of them are exported. Looks like some of them are not even exposed as subroutines.
<source lang="C">SceUID sceIoDopenForDriver(const char *dirname);</source>


Here will go an attempt to desctibe interface of actual callbacks with single ctx argument (as opposed to exported functions that pack arguments into ctx)
=== sceIoLseekForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.931-3.60 || 0x62090481
|}


=== vfs_func1 ===
Call interface is same as <code>sceIoLseek</code>
<source lang="c">
 
<source lang="C">SceOff sceIoLseekForDriver(SceUID fd, SceOff offset, int whence);</source>


typedef struct vfs_func1_args
=== sceIoOpenForDriver ===
{
{| class="wikitable"
  vfs_mount* arg0;
|-
  void* arg1;
! Version !! NID
}vfs_func1_args;
|-
| 0.931-3.60 || 0x75192972
|}


int vfs_func1(vfs_func1_args* ctx)
Call interface is same as [[SceLibKernel#sceIoOpen|sceIoOpen]].
</source>


=== vfs_func2 ===
If the process is game or non-game, the `SCE_O_NOBUF` flag will be ignored.
<source lang="c">
typedef struct vfs_func2_args
{
  //fields are yet unknown
}vfs_func2_args;


int vfs_func2(vfs_func2_args* ctx)
<source lang="C">SceUID sceIoOpenForDriver(const char *filename, int flag, SceIoMode mode);</source>
</source>


=== vfs_func3 ===
=== sceIoOpenForPidForDriver ===
<source lang="c">
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60 || 0xC3D34965
|}


typedef struct vfs_func3_args
This is a wrapper for [[SceIofilemgr#sceIoOpenForDriver|sceIoOpenForDriver]].
{
  vfs_mount* arg0;
  uint32_t arg1;
  vfs_node* arg2;


}vfs_func3_args;
Pid is used for <code>sceFiosKernelOverlayResolveSyncForDriver</code>.


int vfs_func3(vfs_func3_args* ctx)
<source lang="C">SceUID sceIoOpenForPidForDriver(SceUID pid, const char *filename, int flag, SceIoMode mode);</source>
</source>


=== vfs_func4 ===
=== sceIoChstatForDriver ===
<source lang="c">
{| class="wikitable"
typedef struct vfs_func4_args
|-
{
! Version !! NID
  vfs_node *node;
|-
  uint32_t unk_4;
| 1.69-3.60 || 0x7D42B8DC
  uint32_t unk_8;
|}


  //more fields?
Call interface is same as <code>sceIoChstat</code>


}vfs_func4_args;
<source lang="C">int sceIoChstatForDriver(const char *name, const SceIoStat *buf, unsigned int cbit);</source>


int vfs_func4(vfs_func4_args* ctx)
=== sceIoChstatForVshbridgeForDriver ===
</source>
{| class="wikitable"
|-
! Version !! NID
|-
| 0.995-3.60 || 0x1F98BD50
|}


=== vfs_func7 ===
Temp name was sceIoChstatForDriver_2. Derived from [[SceVshBridge#vshIoChstat|_vshIoChstat]].
<source lang="c">
typedef struct vfs_func7_args
{
  //fields are yet unknown
}vfs_func7_args;


int vfs_func7(vfs_func7_args* ctx)
Implementation is completely the same as <code>sceIoChstatForDriver</code>. The only difference is that (bits = bits & (~0x10000)) operation is not applied.
</source>


=== vfs_func9 ===
<source lang="C">int sceIoChstatForVshbridgeForDriver(const char *name, const SceIoStat *buf, unsigned int cbit);</source>
<source lang="c">
typedef struct vfs_func9_args
{
  //fields are yet unknown
}vfs_func9_args;


int vfs_func9(vfs_func9_args* ctx)
=== sceIoGetstatForDriver ===
</source>
{| class="wikitable"
! Version !! NID
|-
| 1.69-3.60 || 0x75C96D25
|}


=== vfs_func10 ===
Call interface is same as <code>sceIoGetstat</code>.
<source lang="c">
typedef struct vfs_func10_args
{
  //fields are yet unknown
}vfs_func10_args;


int vfs_func10(vfs_func10_args* ctx)
<source lang="C">int sceIoGetstatForDriver(const char *name, SceIoStat *buf);</source>
</source>


=== vfs_func12 ===
=== sceIoGetstatForVshbridgeForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 0.995-3.60 || 0xD6503624
| 0xB07B307D
|}
|}


<source lang="c">
Temp name was sceIoGetstatForDriver_2. Derived from [[SceVshBridge#vshIoGetstat|_vshIoGetstat]].
typedef struct vfs_func12_args
{
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8; // some switch number
  char* name;
 
  uint32_t nameLength;
  uint32_t unk_14;
  uint32_t unk_18;


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


}vfs_func12_args;
<source lang="C">int sceIoGetstatForVshbridgeForDriver(const char *name, SceIoStat *buf);</source>


int vfs_func12(vfs_func12_args* ctx)
=== sceIoMkdirForDriver ===
</source>
 
=== vfs_func13 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version
! Version !! NID
! NID
|-
|-
| 3.60
| 1.69-3.60 || 0x7F710B25
| 0xF7DAC0F5
|}
|}


<source lang="c">
Call interface is same as <code>sceIoMkdir</code>
typedef struct vfs_func13_args
{
  uint32_t unk_0;
  char* blockDeviceName;
  uint32_t unk_8;
  uint32_t unk_C;


  char* numericName;
<source lang="C">int sceIoMkdirForDriver(const char *dirname, SceIoMode mode);</source>
  uint32_t blockDeviceNameLength;
  uint32_t* numericNameLength;
}vfs_func13_args;


int vfs_func13(vfs_func13_args* ctx)
=== sceIoReadForDriver ===
</source>
 
== SceIofilemgrForDriver vfs node callbacks ==
 
It looks like vfs callbacks are exported. Callbacks can be identified using these steps:
*Find all functions that contain indirect calls
*Locate only calls that use address, taken from table, that is pointed by vfs_node (offset 0x40, then valid offset inside pointer table)
*Trace back to first exported function (usually this is single export, not far away in call stack)
*Turns out ScePfsMgr and SceExfatfs use these exports from their vfs node function callbacks, so this information can be mapped/matched.
 
=== vfs_node_func1 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x76B79BEC
| 1.69-3.60 || 0xE17EFC03
|-
|}
|}
<source lang="c">
int vfs_node_func1(vfs_node *node, vnf1_arg1* dev, int unk2, int unk3)


struct vnf1_arg1
Call interface is same as <code>sceIoRead</code>
{
  char* blockDevice;
  uint32_t nameLength;
  char* unixMount;
}vnf1_arg1;


//this type applies only to SceSdif
<source lang="C">int sceIoReadForDriver(SceUID fd, void *buf, SceSize nbyte);</source>


struct vnf1_arg3
=== sceIoCloseForDriver ===
{
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
 
  uint32_t unk_10;
  uint32_t unk_14;
  uint32_t unk_18;
  uint32_t unk_1C;
 
  sd_stor_device_handle* handle;
 
  //not sure about size, can be more fields ?
 
}vnf1_arg3;
 
struct vfs_node_func1_args
{
  vfs_node* node;
  vnf1_arg1* arg1; //ignored (applies to SceSdif)
  uint32_t arg2;
  vnf1_arg3* arg3; //result (applies to SceSdif)
}vfs_node_func1_args;
 
</source>
 
arguments are packed into <code>vfs_node_func1_args</code> and passed to <code>vfs_node_func1</code> callback
 
=== vfs_node_func2 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x9E347C7D
| 1.69-3.60 || 0xF99DD8A3
|-
|}
|}
<source lang="c">
int vfs_node_func2(vfs_node *node, int unk1, int unk2, int unk3, int arg_0)


struct vfs_node_func2_args
Call interface is same as <code>sceIoClose</code>
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t arg2;
  uint32_t arg3;
  uint32_t arg_0;
}vfs_node_func2_args;


</source>
<source lang="C">int sceIoCloseForDriver(SceUID fd);</source>


arguments are packed into <code>vfs_node_func2_args</code> and passed to <code>vfs_node_func2</code> callback
=== sceIoRenameForDriver ===
 
=== vfs_node_func3 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x40944C2E
| 1.69-3.60 || 0xDC0C4997
|-
|}
|}
<source lang="c">
int vfs_node_func3(vfs_node *node, int unk1)


struct vfs_node_func3_args
Call interface is same as <code>sceIoRename</code>
{
  vfs_node* node;
  uint32_t arg1;
}vfs_node_func3_args;


</source>
<source lang="C">int sceIoRenameForDriver(const char *oldname, const char *newname);</source>


arguments are packed into <code>vfs_node_func3_args</code> and passed to <code>vfs_node_func3</code> callback
=== sceIoRemoveForDriver ===
 
=== vfs_node_func4 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xA5A6A55C
| 1.69-3.60 || 0x0D7BB3E1
|-
|}
|}
<source lang="c">
int vfs_node_func4(vfs_node *node, vfs_node** new_node, vnf4_arg2* dev, int unk3)


struct vnf4_arg2
Call interface is same as <code>sceIoRemove</code>
{
  char* blockDeviceName;
  int nameLength;
} vnf4_arg2;


struct vfs_node_func4_args
<source lang="C">int sceIoRemoveForDriver(const char *filename);</source>
{
  vfs_node* node;
  vfs_node** new_node; //result
  vnf4_arg2* dev;
  uint32_t arg3; //ignored (applies to SceSdif)
}vfs_node_func4_args;


</source>
=== sceIoCancelForDriver ===
 
arguments are packed into <code>vfs_node_func4_args</code> and passed to <code>vfs_node_func4</code> callback
 
=== vfs_node_func5_or_19 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x570388A5
| 3.60 || 0x6D59658D
|-
|}
|}
<source lang="c">int vfs_node_func5_or_19(vfs_node *n0, int unk1, int unk2, int unk3, int arg_0)</source>


=== vfs_node_func5_or_19 ===
Derived from <code>sceIoCancel</code>
 
=== sceIoChstatAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xABBC80E3
| 3.60 || 0x7EC442BF
|-
|}
|}
<source lang="c">int vfs_node_func5_or_19(vfs_node *n0, int unk1, int unk2, int unk3, int arg_0, int arg_4, int arg_8)</source>


=== vfs_node_func6_or_20 ===
Derived from <code>_sceIoChstatAsync</code>
 
=== sceIoChstatByFdAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x9A68378D
| 3.60 || 0xEC974400
|-
|}
|}
<source lang="c">int vfs_node_func6_or_20(vfs_node *n0, int unk1, int unk2, int unk3, int arg_0)</source>


=== vfs_node_func6_or_20 ===
Derived from <code>sceIoChstatByFdAsync</code>
 
=== sceIoChstatByFdForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xA53C040D
| 3.60 || 0xDF57A75F
|-
|}
|}
<source lang="c">int vfs_node_func6_or_20(vfs_node *n0, int unk1, int unk2, int unk3, int arg_0, int arg_4, int arg_8)</source>


=== vfs_node_func7 ===
Derived from <code>_sceIoChstatByFd</code>
 
<source lang="C">int sceIoChstatByFdForDriver(SceUID fd, const SceIoStat *buf, unsigned int cbit);</source>
 
=== sceIoCloseAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xB2B13818
| 3.60 || 0x11C57CC6
|-
|}
|}
<source lang="c">
int vfs_node_func7(vfs_node *node, vnf7_arg1* objectBase, SceOff offset, int whence)


struct vnf7_arg1
Derived from <code>sceIoCloseAsync</code>
{
 
  uint32_t unk_0;
=== sceIoDevctlAsyncForDriver ===
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
 
  uint32_t unk_10;
  uint32_t unk_14;
  uint32_t unk_18;
  uint32_t unk_1C;
 
  void* unk_20; // pointer to structure. most likely device specific that has fast_mutex as first field
 
} vnf7_arg1;
 
struct vfs_node_func7_args
{
  vfs_node* node;
  vnf7_arg1* objectBase; //some structure
  SceOff offset
  int whence
}vfs_node_func7_args;
 
</source>
 
arguments are packed into <code>vfs_node_func7_args</code> and passed to <code>vfs_node_func7</code> callback
 
=== vfs_node_func8 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x333C904D
| 3.60 || 0xA9302946
|-
|}
|}
<source lang="c">
int vfs_node_func8(vfs_node* node, void* objectBase, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen)


struct vfs_node_func8_args
Derived from <code>_sceIoDevctlAsync</code>
{
  vfs_node* node;
  void* objectBase;
  unsigned int cmd;
  void *indata;
  int inlen;
  void *outdata;
  int outlen;
}vfs_node_func8_args;


</source>
=== sceIoDevctlForDriver ===
 
arguments are packed into <code>vfs_node_func8_args</code> and passed to <code>vfs_node_func8</code> callback
 
=== vfs_node_func9 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xDC1E7EE4
| 0.990.000-3.740.011 || 0x16882FC4
|-
|}
|}
<source lang="c">
int vfs_node_func9(vfs_node *node0, vfs_node *node1, void *ctx, int unk)


need to confirm this type with dump
cmd list


typedef struct vnf9_arg2 //most likely this type is also vfs_node (same partial layout of fields)
{| class="wikitable"
{
|-
  char* blockDeviceName;
! handler !! cmd !! function
  int nameLength;
|-
  uint32_t unk_8;
| sdstor || 1 || Update ctx info
  uint32_t unk_C;
|-
 
| sdstor || 2 || Format rm
  uint32_t unk_10;
|-
  uint32_t unk_14;
| sdstor || 3 || Set some intr flag
  uint32_t unk_18;
|-
  uint32_t unk_1C;
| sdstor || 4 || remove
 
|-
  uint32_t unk_20;
| sdstor || 5 || insert
  uint32_t unk_24;
|-
  uint32_t unk_28;
| sdstor || 6 || sceSdErase
  uint32_t unk_2C;
|-
 
| sdstor || 7 || sdctrl_invalidate_partition with check
  uint32_t unk_30;
|-
  uint32_t unk_34;
| sdstor || 8 || sdctrl_invalidate_partition
  uint32_t unk_38;
|-
  uint32_t unk_3C;
| exfat || 0x3001 || get_drive_information
 
|-
  uint32_t unk_40;
| exfat || 0x3004 || set_fake_free
  uint32_t unk_44;
|-
  partition_entry** unk_48;
| exfat || 0x3005 || clear_fake_free
}vnf9_arg2;
|-
| exfat || 0x3802 || set_whiteout_directory
|-
| exfat || 0x3803 || delete_whiteout_entry
|-
| exfat || 0x80000001 || _get_file_size_limit
|}


struct vfs_node_func9_args
Derived from [[SceIofilemgr#sceIoDevctl|_sceIoDevctl]].
{
  vfs_node* node0;
  vfs_node* node1;
  vnf9_arg2* arg2;
  uint32_t arg3; //ignored (applies to SceSdif)
}vfs_node_func9_args;


</source>
This performs device-specific operations. The details of the operations are driver-dependent.


arguments are packed into <code>vfs_node_func9_args</code> and passed to <code>vfs_node_func9</code> callback
It has the same prototype as [[SceLibKernel#sceIoDevctl]].


=== vfs_node_func10 ===
<source lang="C">
{| class="wikitable"
/*
|-
Arguments:
! Version !! NID
devname    Specified device ("<devname><unit>:")
|-
cmd    Command code
| 3.60 || 0x2F3F8C70
arg    Pointer to device-driver-dependent parameter block
|-
arglen    Number of bytes in device-driver-dependent parameter block
|}
bufp    Pointer to return data storage block
<source lang="c">
buflen    Size of return data storage block
int vfs_node_func10(vfs_node* node, void* unk1, void* unk2, SceMode mode)


struct vfs_node_func10_args
Return Values:
{
Non-negative (N>=0) Success (driver-dependent)
  vfs_node* node;
<0 Error, e.g. SCE_ERROR_ERRNO_EMFILE, SCE_ERROR_ERRNO_ENODEV, SCE_ERROR_ERRNO_EUNSUP
  void* arg1;
*/
  void* arg2;
  SceMode mode;
}vfs_node_func10_args;


int sceIoDevctlForDriver(
    const char *devname,
    int cmd,
    const void *arg,
    SceSize arglen,
    void *bufp,
    SceSize buflen
);
</source>
</source>


arguments are packed into <code>vfs_node_func10_args</code> and passed to <code>vfs_node_func10</code> callback
=== sceIoDcloseForDriver ===
 
=== vfs_node_func11 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x1D551105
| 3.60 || 0x19C81DD6
|-
|}
|}
<source lang="c">
int vfs_node_func11(vfs_node *node, int unk1, int unk2, int unused)


struct vfs_node_func11_args
Derived from <code>sceIoDclose</code>
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t arg2;
}vfs_node_func11_args;


</source>
<source lang="C">int sceIoDcloseForDriver(SceUID fd);</source>


arguments are packed into <code>vfs_node_func11_args</code> and passed to <code>vfs_node_func11</code> callback
=== sceIoFlockForDriver ===
 
=== vfs_node_func12 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x00C9C2DD
| 3.60 || 0x16336A0D
|-
|}
|}
<source lang="c">
int vfs_node_func12(vfs_node *node, int unk1, int unk2)


struct vfs_node_func12_args
Derived from <code>sceIoFlockForSystem</code>
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t arg2;
}vfs_node_func12_args;


</source>
=== sceIoGetstatByFdAsyncForDriver ===
 
arguments are packed into <code>vfs_node_func12_args</code> and passed to <code>vfs_node_func12</code> callback
 
=== vfs_node_func13 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x1350F5C7
| 3.60 || 0x0FEE1238
|-
|}
|}
<source lang="c">
int vfs_node_func13(vfs_node *node, int unk1)


struct vfs_node_func13_args
Derived from <code>sceIoGetstatByFdAsync</code>
{
  vfs_node* node;
  uint32_t arg1;
}vfs_node_func13_args;


</source>
=== sceIoGetstatByFdForDriver ===
 
arguments are packed into <code>vfs_node_func13_args</code> and passed to <code>vfs_node_func13</code> callback
 
=== vfs_node_func14 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x77584C8F
| 3.60 || 0x462F059B
|-
|}
|}
<source lang="c">
int vfs_node_func14(vfs_node* node, void* objectBase, SceIoDirent* dir)


struct vfs_node_func14_args
Derived from <code>_sceIoGetstatByFd</code>
{
  vfs_node* node;
  void* objectBase;
  SceIoDirent* dir;
}vfs_node_func14_args;


<source lang="C">
// Return: 0 on success
int sceIoGetstatByFdForDriver(SceUID fd, SceIoStat *buf);
</source>
</source>


arguments are packed into <code>vfs_node_func14_args</code> and passed to <code>vfs_node_func14</code> callback
=== sceIoGetstatAsyncForDriver ===
 
=== vfs_node_func15 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x50A63ACF
| 3.60 || 0x94A5304A
|-
|}
|}
<source lang="c">
int vfs_node_func15(vfs_node *node, vfs_node_func15_arg1* arg1, SceIoStat* stat)


typedef struct vfs_node_func15_arg1 //size is 0x10
Derived from <code>_sceIoGetstatAsync</code>
{
  char* data; //from vfs_node_70 at 0x18
  int len;
  int unk_8;
  int unk_C;


}vfs_node_func15_arg1;
=== sceIoIoctlAsyncForDriver ===
 
struct vfs_node_func15_args
{
  vfs_node* node;
  vfs_node_func15_arg1* arg1;
  SceIoStat* stat;
}vfs_node_func15_args;
 
</source>
 
arguments are packed into <code>vfs_node_func15_args</code> and passed to <code>vfs_node_func15</code> callback
 
=== vfs_node_func16 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x1974FA92
| 3.60 || 0xB761E91B
|-
|}
|}
<source lang="c">
int vfs_node_func16(vfs_node *node, void *unk1, SceIoStat *stat, int bits)


struct vfs_node_func16_args
Derived from <code>_sceIoIoctlAsync</code>
{
  vfs_node* node;
  uint32_t arg1;
  SceIoStat *stat;
  int bits;
}vfs_node_func16_args;


</source>
=== sceIoIoctlForDriver ===
 
arguments are packed into <code>vfs_node_func16_args</code> and passed to <code>vfs_node_func16</code> callback
 
=== vfs_node_func17 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x36A794C7
| 3.60 || 0x161CD33F
|-
|}
|}
<source lang="c">
int vfs_node_func17(vfs_node *node, int unk1, int unk2, int unk3, int arg_0, int arg_4)


struct vfs_node_func17_args
Derived from <code>_sceIoIoctl</code>
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t arg2;
  uint32_t arg3;
  uint32_t arg_0;
  uint32_t arg_4;
}vfs_node_func17_args;


<source lang="C">
// Return: >=0 on success (driver-dependent)
int sceIoIoctlForDriver(SceUID fd, int cmd, const void *argp, SceSize arglen, void *bufp, SceSize buflen);
</source>
</source>


arguments are packed into <code>vfs_node_func17_args</code> and passed to <code>vfs_node_func17</code> callback
=== sceIoLseekAsyncForDriver ===
 
=== vfs_node_func21 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x8FB94521
| 3.60 || 0x541BAABD
|-
|}
|}
<source lang="c">
int vfs_node_func21(vfs_node *node)


struct vfs_node_func21_args
Derived from <code>_sceIoLseekAsync</code>
{
  vfs_node* node;
}vfs_node_func21_args;


</source>
=== sceIoMkdirAsyncForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60 || 0x27003443
|}


arguments are packed into <code>vfs_node_func21_args</code> and passed to <code>vfs_node_func21</code> callback
Derived from <code>_sceIoMkdirAsync</code>


=== vfs_node_func22 ===
=== sceIoOpenAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x942AA61F
| 3.60 || 0x451001DE
|-
|}
|}
<source lang="c">
int vfs_node_func22(vfs_node *node, int unk1)


struct vfs_node_func22_args
Derived from <code>_sceIoOpenAsync</code>
{
  vfs_node* node;
  uint32_t arg1;
}vfs_node_func22_args;


</source>
=== sceIoPreadAsyncForDriver ===
 
arguments are packed into <code>vfs_node_func22_args</code> and passed to <code>vfs_node_func22</code> callback
 
=== vfs_node_func23 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x0D8A806E
| 3.60 || 0x64A46A2C
|-
|}
|}
<source lang="c">int vfs_node_func23(vfs_node *node, int unk1)


struct vfs_node_func23_args
Derived from <code>_sceIoPreadAsync</code>
{
  vfs_node* node;
  uint32_t arg1;
}vfs_node_func23_args;


</source>
=== sceIoPreadForDriver ===
 
arguments are packed into <code>vfs_node_func23_args</code> and passed to <code>vfs_node_func23</code> callback
 
=== vfs_node_func24 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x9CD96406
| 3.60 || 0x2A17515D
|-
|}
|}
<source lang="c">
int vfs_node_func24(vfs_node *node, int unk1, int unk2)


struct vfs_node_func24_args
Derived from <code>_sceIoPread</code>
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t arg2;
}vfs_node_func24_args;


<source lang="C">
// Return: Number of bytes actually read
int sceIoPreadForDriver(SceUID uid, void *data, int size, SceOff offset);
</source>
</source>


arguments are packed into <code>vfs_node_func24_args</code> and passed to <code>vfs_node_func24</code> callback
=== sceIoPwriteAsyncForDriver ===
 
=== vfs_node_func25 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x1DBCBB01
| 3.60 || 0x202CDDE3
|-
|}
|}
<source lang="c">


int vfs_node_func25(vfs_node *node, int unk1, int unk2)
Derived from <code>_sceIoPwriteAsync</code>


struct vfs_node_func25_args
=== sceIoPwriteForDriver ===
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t arg2;
}vfs_node_func25_args;
 
</source>
 
arguments are packed into <code>vfs_node_func25_args</code> and passed to <code>vfs_node_func25</code> callback
 
=== vfs_node_func26 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x082AFD7F
| 3.60 || 0x5F1512C8
|-
|}
|}
<source lang="c">
int vfs_node_func26(vfs_node *node, void *objectBase, void *unk2, int unk3)


struct vfs_node_func26_args
Derived from <code>_sceIoPwrite</code>
{
  vfs_node* node;
  void *objectBase;
  void* arg2;
  uint32_t arg3;
}vfs_node_func26_args;


<source lang="C">
// Return: Number of bytes actually written
int sceIoPwriteForDriver(SceUID fd, const void *buf, SceSize nbyte, SceOff offset);
</source>
</source>


arguments are packed into <code>vfs_node_func26_args</code> and passed to <code>vfs_node_func26</code> callback
=== sceIoReadAsyncForDriver ===
 
=== vfs_node_func27 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xF53399BC
| 3.60 || 0x69047C81
|-
|}
|}
<source lang="c">
int vfs_node_func27(int unk0, vfs_node *node, int unk2, int unk3)


struct vfs_node_func27_args
Derived from <code>sceIoReadAsync</code>
{
  uint32_t arg0;
  vfs_node* node;
  uint32_t arg2;
  uint32_t arg3;
  uint32_t unk_10; // zero
  uint32_t unk_14; // zero
}vfs_node_func27_args;


</source>
=== sceIoRemoveAsyncForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60 || 0xF9D6507D
|}


arguments are packed into <code>vfs_node_func27_args</code> and passed to <code>vfs_node_func27</code> callback
Derived from <code>_sceIoRemoveAsync</code>


=== vfs_node_func28 ===
=== sceIoRenameAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0x0F7E1718
| 3.60 || 0xAACBC47A
|-
|}
|}
<source lang="c">
int vfs_node_func28(vfs_node *node, int unk1, int unused1, int unused2)


struct vfs_node_func28_args
Derived from <code>_sceIoRenameAsync</code>
{
  vfs_node* node;
  uint32_t arg1;
  uint32_t unk_8; // zero
  uint32_t unk_C; // zero
}vfs_node_func28_args;


</source>
=== sceIoRmdirAsyncForDriver ===
 
arguments are packed into <code>vfs_node_func28_args</code> and passed to <code>vfs_node_func28</code> callback
 
=== vfs_node_func29 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 3.60 || 0xEEAE8B51
| 3.60 || 0xF5B0B36C
|-
|}
|}
<source lang="c">
int vfs_node_func29(vfs_node *node, int unused, int unk2, int unk3, int arg_0, int arg_4, int arg_8, int arg_C)


struct vfs_node_func29_args
Derived from <code>_sceIoRmdirAsync</code>
{
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t arg2;
  uint32_t arg3;
  uint32_t arg_0;
  uint32_t arg_4;
  uint32_t arg_8;
  uint32_t arg_C;
}vfs_node_func29_args;


</source>
=== sceIoRmdirForDriver ===
 
arguments are packed into <code>vfs_node_func29_args</code> and passed to <code>vfs_node_func29</code> callback
 
== SceIofilemgr ==
 
=== _sceIoDcloseAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB13031
| 3.60 || 0x1CC9C634
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoOpenAsync ===
Derived from <code>_sceIoRmdir</code>
 
<source lang="C">int sceIoRmdirForDriver(const char *dirname);</source>
 
=== sceIoSyncByFdAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x9CD0FC8
| 3.60 || 0x041209CF
|-
| 3.60 || 0x9CD0FC8
|-
|}
|}


=== sceIoGetProcessDefaultPriority ===
Derived from <code>sceIoSyncByFdAsync</code>
 
=== not_sceIoSyncByFd_maybe_SyncByFd2ForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xDC4F1BB
| 3.60 || 0x43170575
|-
| 3.60 || 0xDC4F1BB
|-
|}
|}


=== _sceIoRmdirAsync ===
This function is not sceIoSyncByFdForDriver.
 
Derived from <code>sceIoSyncByFd</code>
 
<source lang="C">int not_sceIoSyncByFd_maybe_SyncByFd2ForDriver(SceUID fd, int flag);</source>
 
=== sceIoSyncAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x13DC3244
| 3.60 || 0x4F9EA8B0
|-
| 3.60 || 0x13DC3244
|-
|}
|}


=== sceIoSetPriority ===
Derived from <code>_sceIoSyncAsync</code>
 
=== sceIoSyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x14B2D56C
| 3.60 || 0xDDF78594
|}
 
Derived from <code>_sceIoSync</code>
 
<source lang="C">int sceIoSyncForDriver(const char *device, unsigned int flag);</source>
 
=== sceIoWriteAsyncForDriver ===
{| class="wikitable"
|-
|-
| 3.60 || 0x14B2D56C
! Version !! NID
|-
|-
| 3.60 || 0xA1BD13D0
|}
|}


=== sceIoSyncByFd ===
Derived from <code>sceIoWriteAsync</code>
 
=== sceIoGetProcessDefaultPriorityForSystemForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x16512F59
| 0.990-3.60 || 0xCE397158
|-
| 3.60 || 0x16512F59
|-
|}
|}


=== _sceIoIoctl ===
=== sceIoSetProcessDefaultPriorityForSystemForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x1D2988F1
| 0.990-3.60 || 0xABE65071
|-
| 3.60 || 0x1D2988F1
|-
|}
|}


=== _sceIoLseekAsync ===
=== sceIoDopenAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x2300858E
| 3.60 || 0x72F06BDE
|-
| 3.60 || 0x2300858E
|-
|}
|}


=== sceIoSetPriorityForSystem ===
=== sceIoDcloseAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x27373135
| 3.60 || 0xC08F199F
|-
| 3.60 || 0x27373135
|-
|}
|}


=== _sceIoComplete ===
=== sceIoDreadAsyncForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x34E6A06E
| 3.60 || 0x5982B0E3
|-
| 3.60 || different NID or not present
|-
|}
|}


=== sceIoWrite ===
=== sceIoCreateMountEventForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x34EFD876
| 3.60 || 0x2DFA192F
|-
| 3.60 || 0x34EFD876
|-
|}
|}


<source lang="C">int sceIoWrite(SceUID fd, const void *data, SceSize size);</source>
Derived from [[SceVshBridge#vshIoCreateMountEvent|vshIoCreateMountEvent]]
 
<source lang="C">int sceIoCreateMountEventForDriver(int vshMountId, int flag);</source>


=== _sceIoGetThreadDefaultPriorityForSystem ===
=== sceIoCreateErrorEventForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x36CAF911
| 3.60 || 0x3C0343DB
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoSetThreadDefaultPriorityForSystem ===
Derived from [[SceVshBridge#vshIoCreateErrorEvent|vshIoCreateErrorEvent]]
 
<source lang="C">
typedef struct sceIoCreateErrorEventForDriverOpt {
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
 
  uint32_t unk_10;
  uint32_t unk_14;
  uint32_t unk_18;
} sceIoCreateErrorEventForDriverOpt;
 
SceUID sceIoCreateErrorEventForDriver(int vshMountId, int flag, sceIoCreateErrorEventForDriverOpt* opt);
</source>
 
=== sceIoClearErrorEventForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x38FE853B
| 3.60 || 0x40B933C7
|-
| 3.60 || different NID or not present
|-
|}
|}


=== sceIoFlockForSystem ===
Derived from [[SceVshBridge#vshIoClearErrorEvent|vshIoClearErrorEvent]]
 
<source lang="C">int sceIoClearErrorEventForDriver(SceUID uid);</source>
 
=== sceIoDeleteMountEventForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x3E98E422
| 3.60 || 0x43DB0AE4
|-
| 3.60 || 0x3E98E422
|-
|}
|}


=== _sceIoDevctlAsync ===
Derived from [[SceVshBridge#vshIoDeleteMountEvent|vshIoDeleteMountEvent]]
 
<source lang="C">int sceIoDeleteMountEventForDriver(SceUID uid);</source>
 
=== sceIoDeleteErrorEventForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x3EE3F66E
| 3.60 || 0xC6158F8D
|}
 
Derived from [[SceVshBridge#vshIoDeleteErrorEvent|vshIoDeleteErrorEvent]]
 
<source lang="C">int sceIoDeleteErrorEventForDriver(SceUID uid);</source>
 
=== sceIoSetMountEventForDriver ===
{| class="wikitable"
|-
|-
| 3.60 || 0x3EE3F66E
! Version !! NID
|-
|-
| 0.995-3.60 || 0x39ABDB9E
|}
|}


=== sceIoDclose ===
Temp name was sceIoInvokeMountEventForDriver.
 
<source lang="C">
/*
* (flags & 0x100) != 0 -> mount
* (flags & 0x200) != 0 -> unmount
*/
int sceIoSetMountEventForDriver(int vshMountId, int flags, int unk2, int unk3);
</source>
 
=== vfsUnlockMntByMntIdForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x422A221A
| 3.60 || 0x5B7E5AB8
|-
| 3.60 || 0x422A221A
|-
|}
|}


<source lang="C">int sceIoDclose(SceUID fd);</source>
This is a guessed name.
 
Temp name was sceIoUmount2ForDriver.
 
<source lang="C">int vfsUnlockMntByMntIdForDriver(int vshMountId);</source>


=== _sceIoRename ===
=== sceIoSetPathMappingFunctionForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x4912F748
| 3.60 || 0xCFAECF18
|-
| 3.60 || 0x4912F748
|-
|}
|}
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 [[SceAppMgr#Data_segment_layout|global 0x3470C]] <code>mount_point_data_entry</code> item array
* if item is found then <code>path</code> from <code>mount_point_data_entry</code> item is copied to <code>result_path</code>
* in any other case OverlayResolveSync result path is copied to <code>result_path</code>


<source lang="C">
<source lang="C">
typedef struct sceIoRenameOpt
typedef int ( SceIoPathMappingFunc)(const char *path, SceUID pid, char *result_path, SceSize size);
{
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
}sceIoRenameOpt;


int _sceIoRename(const char *oldname, const char *newname, sceIoRenameOpt *opt);
int sceIoSetPathMappingFunctionForDriver(SceIoPathMappingFunc *func);
</source>
</source>


=== sceIoLseek32 ===
=== sceIoGetMediaTypeForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x49252B9B
| 0.990-3.60 || 0x9C220246
|-
| 3.60 || 0x49252B9B
|-
|}
|}


<source lang="C">int sceIoLseek32(SceUID fd, int offset, int whence);</source>
Was wrongly named sceIoGetPathIdExForDriver.
 
May also call callback function set by [[SceIofilemgr#sceIoSetPathMappingFunctionForDriver|sceIoSetPathMappingFunctionForDriver]].


=== sceIoSetThreadDefaultPriority ===
This callback function does path mapping since result in result_path is passed to [[SceSblACMgr#sceSblACMgrGetMediaTypeForKernel|sceSblACMgrGetMediaTypeForKernel]].
 
<source lang="C">int sceIoGetMediaTypeForDriver(SceUID pid, const char *path, int ignored, int *media_type);</source>
 
=== sceIoGetThreadDefaultPriorityForSystemForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x49312108
| 3.60 || 0x6D0FEDB6
|}
 
<source lang="C">int sceIoGetThreadDefaultPriorityForSystemForDriver(void);</source>
 
=== sceIoSetThreadDefaultPriorityForSystemForDriver ===
{| class="wikitable"
|-
|-
| 3.60 || 0x49312108
! Version !! NID
|-
|-
| 3.60 || 0x3F0FF9D5
|}
|}


=== _sceIoDevctl ===
=== sceIoGetRemoteKPLSDataForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x515AC017
| 3.60 || 0x44EDCE57
|-
| 3.60 || 0x515AC017
|-
|}
|}


=== sceIoGetstatByFdAsync ===
This is a guessed name.
 
<source lang="C">int sceIoGetRemoteKPLSDataForDriver(SceUID pid, void *dst);</source>
 
=== sceIoSetProcessFileOpenMaxNumberForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x5167AC1E
| 3.60 || 0xAC0E9AAA
|-
| 3.60 || 0x5167AC1E
|-
|}
|}


=== _sceIoPread ===
<source lang="C">int sceIoSetProcessFileOpenMaxNumberForDriver(SceUID pid, SceSize number);</source>
 
=== sceIoSetProcessDirOpenMaxLevelForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x539FD5C4
| 3.60 || 0x03F6A684
|-
| 3.60 || 0x539FD5C4
|-
|}
|}


=== _sceIoGetstatByFdAsync ===
<source lang="C">int sceIoSetProcessDirOpenMaxLevelForDriver(SceUID pid, SceSize level);</source>
 
=== sceIoCompleteForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x554292F0
| 3.60 || 0x8F0DE34D
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoChstatByFdAsync ===
<source lang="C">int sceIoCompleteForDriver(SceUID fd);</source>
 
=== sceIoGetPriorityForSystemForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x58010F40
| 3.60 || 0x9FCDCE62
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoGetThreadDefaultPriority ===
<source lang="C">int sceIoGetPriorityForSystemForDriver(SceUID a1);</source>
 
=== sceIoSetPriorityForSystemForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x5DC29460
| 3.60 || 0xCCE94599
|}
 
<source lang="C">int sceIoSetPriorityForSystemForDriver(SceUID a1, int a2);</source>
 
=== sceIoSetErrorEventForDriver ===
{| class="wikitable"
|-
|-
| 3.60 || different NID or not present
! Version !! NID
|-
|-
| 0.995-3.60 || 0xDD46CD63
|}
|}


=== _sceIoSync ===
Previously (wrongfully) called sceIoGetGUIDErrorEventListForDriver.
 
=== sceIoSetDebuggerCallbackForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x5DD867F7
| 3.60 || 0xF4F8C59A
|-
| 3.60 || 0x5DD867F7
|-
|}
|}


=== _sceIoRemoveAsync ===
=== sceIoGetGUIDFdListForDebuggerForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x5FFA47E2
| 3.60 || 0xdcf75f6d
|-
| 3.60 || 0x5FFA47E2
|-
|}
|}


=== _sceIoDreadAsync ===
=== sceIoGetPUIDFdListForDebuggerForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x64B233B8
| 3.60 || 0xd493274
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoSetThreadDefaultPriority ===
=== sceIoGetFileInfoForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x654E27B1
| 3.60 || 0xa1ef2648
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoSyncByFdAsync ===
This is a guessed name.
 
=== SceIofilemgrForDriver_12F8D58E ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x6F78FAFE
| 3.60 || 0x12F8D58E
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoGetPriorityForSystem ===
get some value
 
=== SceIofilemgrForDriver_15C17487 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x70B7BB52
| 0.996.090-3.740.011 || 0x15C17487
|-
| 3.60 || different NID or not present
|-
|}
|}


=== sceIoReadAsync ===
A possible name is sceIoSchedulerIssueAnotherIoRequestForDriver.
 
<source lang="C">int SceIofilemgrForDriver_15C17487(int io_device_code);</source>
 
=== SceIofilemgrForDriver_2EFDFA12 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x773EBD45
| 3.60 || 0x2EFDFA12
|-
| 3.60 || 0x773EBD45
|-
|}
|}


=== _sceIoRemove ===
set path by flags?
 
<source>int SceIofilemgrForDriver_2EFDFA12(SceUID fd, char *path);</source>
 
=== SceIofilemgrForDriver_3675ECB9 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x78955C65
| 3.60 || 0x3675ECB9
|-
| 3.60 || 0x78955C65
|-
|}
|}


<source lang="C">
could be sceIoSchedDispatcherFsResourceUnavailableForDriver.
typedef struct sceIoRemoveOpt
{
  uint32_t unk_0;
  uint32_t unk_4;
}sceIoRemove;


int _sceIoRemove(const char *file, sceIoRemoveOpt* opt);
some node op. dec ctr.
</source>


=== sceIoSyncByFdAsync ===
=== SceIofilemgrForDriver_3A79FAC9 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x7E1367CB
| 3.60 || 0x3A79FAC9
|-
| 3.60 || 0x7E1367CB
|-
|}
|}


=== sceIoSetProcessDefaultPriority ===
delete fd by flags
 
<source>int SceIofilemgrForDriver_3A79FAC9(SceUID fd);</source>
 
=== SceIofilemgrForDriver_6BEEDDB4 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x7F2ABBAF
| 3.60 || 0x6BEEDDB4
|-
| 3.60 || 0x7F2ABBAF
|-
|}
|}


=== _sceIoRenameAsync ===
setting some to fd of dir entry
 
<source>int SceIofilemgrForDriver_6BEEDDB4(SceUID fd, int a2);</source>
 
=== SceIofilemgrForDriver_B499287E ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x81794921
| 3.60 || 0xB499287E
|-
| 3.60 || 0x81794921
|-
|}
|}


=== _sceIoSyncAsync ===
delete some puid from a1
 
<source>int SceIofilemgrForDriver_B499287E(void *a1, int n, int *num);</source>
 
=== SceIofilemgrForDriver_C722DF35 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x86DB0C0E
| 3.60 || 0xC722DF35
|-
|}
| 3.60 || 0x86DB0C0E
 
|-
some node op. inc ctr.
|}


=== _sceIoDread ===
=== sceIoSyncByFdForDriver ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x8713D662
| 3.60 || 0x338dcd68
|-
| 3.60 || 0x8713D662
|-
|}
|}


<source lang="C">int _sceIoDread(SceUID fd, SceIoDirent *dir);</source>
== SceIofilemgr ==


=== _sceIoWrite ===
=== _sceIoDcloseAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x8C319CF0
| 1.69 || 0x00B13031
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoGetstat ===
=== _sceIoOpenAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x8E7E11F2
| 1.69-3.60 || 0x09CD0FC8
|-
| 3.60 || 0x8E7E11F2
|-
|}
|}


<source lang="C">
=== sceIoGetProcessDefaultPriority ===
struct sceIoGetstatOpt
{
  uint32_t unk_0;
  uint32_t unk_4;
};
 
int _sceIoGetstat(const char *file, SceIoStat *stat, sceIoGetstatOpt *opt);
</source>
 
=== sceIoCloseAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x8EA3616A
| 1.69-3.60 || 0x0DC4F1BB
|-
| 3.60 || 0x8EA3616A
|-
|}
|}


=== _sceIoMkdir ===
=== _sceIoRmdirAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x8F1ACC32
| 1.69-3.60 || 0x13DC3244
|-
| 3.60 || 0x8F1ACC32
|-
|}
|}


<source lang="C">
=== sceIoSetPriority ===
typedef struct sceIoMkdirOpt
{
  uint32_t unk_0;
  uint32_t unk_4;
}sceIoMkdirOpt;
 
int _sceIoMkdir(const char *dir, SceMode mode, sceIoMkdirOpt opt);
 
</source>
 
=== _sceIoCompleteMultiple ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x9111D004
| 1.69-3.60 || 0x14B2D56C
|}
 
=== sceIoSyncByFd ===
{| class="wikitable"
|-
|-
| 3.60 || 0x9111D004
! Version !! NID
|-
|-
| 1.69-3.60 || 0x16512F59
|}
|}


=== _sceIoLseek32 ===
<source lang="C">int sceIoSyncByFd(SceUID fd, unsigned int unk);</source>
 
=== _sceIoIoctl ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x92BDA6DA
| 1.69-3.60 || 0x1D2988F1
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoPwrite ===
=== _sceIoLseekAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x9654094B
| 1.69-3.60 || 0x2300858E
|-
| 3.60 || 0x9654094B
|-
|}
|}


=== _sceIoGetPriority ===
=== sceIoSetPriorityForSystem ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0x9E3F880D
| 1.69-3.60 || 0x27373135
|-
| 3.60 || different NID or not present
|-
|}
|}


=== sceIoGetThreadDefaultPriority ===
=== _sceIoComplete ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xA176CD03
| 1.69 || 0x34E6A06E
|-
| 3.60 || 0xA176CD03
|-
|-
| 3.60 || different NID or not present
|}
|}


=== _sceIoLseek ===
=== sceIoWrite ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xA604764A
| 1.69-3.60 || 0x34EFD876
|-
| 3.60 || 0xA604764A
|-
|}
|}


<source lang="C">
<source lang="C">int sceIoWrite(SceUID fd, const void *data, SceSize size);</source>
typedef struct _sceIoLseekOpt //size is 0x10
{
  SceOff offset;
  int whence;
  uint32_t unk;
}_sceIoLseekOpt;


SceOff _sceIoLseek(SceUID fd, _sceIoLseekOpt* opt);
=== _sceIoGetThreadDefaultPriorityForSystem ===
</source>
 
=== sceIoChstatByFdAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xA9F89275
| 1.69 || 0x36CAF911
|-
| 3.60 || 0xA9F89275
|-
|-
| 3.60 || different NID or not present
|}
|}


=== _sceIoGetProcessDefaultPriority ===
=== _sceIoSetThreadDefaultPriorityForSystem ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB0486482
| 0.990-1.69 || 0x38FE853B
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoSetPriority ===
=== sceIoFlockForSystem ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB14192F0
| 1.69-3.60 || 0x3E98E422
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoReadAsync ===
=== _sceIoDevctlAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB2B891E6
| 1.69-3.60 || 0x3EE3F66E
|}
 
=== sceIoDclose ===
{| class="wikitable"
|-
|-
| 3.60 || different NID or not present
! Version !! NID
|-
|-
| 1.69-3.60 || 0x422A221A
|}
|}


=== _sceIoPwriteAsync ===
<source lang="C">int sceIoDclose(SceUID fd);</source>
 
=== _sceIoRename ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB2D0B2F4
| 1.69-3.60 || 0x4912F748
|-
| 3.60 || 0xB2D0B2F4
|-
|}
|}


=== _sceIoChstatAsync ===
<source lang="C">
typedef struct sceIoRenameOpt {
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
} sceIoRenameOpt;
 
int _sceIoRename(const char *oldname, const char *newname, sceIoRenameOpt *opt);
</source>
 
=== sceIoLseek32 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB4B021D9
| 1.69-3.60 || 0x49252B9B
|-
| 3.60 || 0xB4B021D9
|-
|}
|}


=== sceIoSetThreadDefaultPriorityForSystem ===
<source lang="C">int sceIoLseek32(SceUID fd, int offset, int whence);</source>
 
=== sceIoSetThreadDefaultPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xB9C9C9CF
| 1.69-3.60 || 0x49312108
|-
| 3.60 || 0xB9C9C9CF
|-
|}
|}


=== _sceIoPreadAsync ===
=== _sceIoDevctl ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xBCF5684D
| 1.000.071-3.740.011 || 0x515AC017
|-
|}
| 3.60 || 0xBCF5684D
 
|-
This performs device-specific operations. The details of the operations are driver-dependent.
|}
 
This is a wrapper for [[#sceIoDevctlForDriver|sceIoDevctlForDriver]].
 
<source lang="C">
/*
Arguments:
devname    Specified device ("<devname><unit>:")
cmd    Command code
arg    Pointer to device-driver-dependent parameter block
arglen    Number of bytes in device-driver-dependent parameter block
bufp    Pointer to return data storage block
buflen    Size of return data storage block
 
Return Values:
Non-negative (N>=0) Success (driver-dependent)
<0 Error, e.g. SCE_ERROR_ERRNO_EMFILE, SCE_ERROR_ERRNO_ENODEV, SCE_ERROR_ERRNO_EUNSUP
*/
 
typedef struct SceIoDevctlOpt { // size is 0x18
    SceSize arglen; // Number of bytes in device-driver-dependent parameter block
    void *bufp; // Pointer to return data storage block
    SceSize buflen; // Size of return data storage block
    char reserved[0xC];
} SceIoDevctlOpt;
 
int _sceIoDevctl(
    const char *devname,
    int cmd,
    const void *arg,
    const SceIoDevctlOpt *pOpt
);
</source>


=== sceIoDopenAsync ===
=== sceIoGetstatByFdAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xC49C312F
| 1.69-3.60 || 0x5167AC1E
|-
| 3.60 || 0xC49C312F
|-
|}
|}


=== sceIoClose ===
=== _sceIoPread ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xC70B8886
| 1.69-3.60 || 0x539FD5C4
|-
| 3.60 || 0xC70B8886
|-
|}
|}


<source lang="C"> int sceIoClose(SceUID fd);</source>
<source lang="C">
typedef struct sceIoPreadOpt {
  SceOff offset;
  uint32_t unk_8;
  uint32_t unk_C;
} sceIoPreadOpt;
 
int _sceIoPread(SceUID uid, void *buffer, SceSize size, sceIoPreadOpt *opt);
 
// 3.60
typedef struct SceIoPreadSyscallArgs {
void *buf;
SceSize nbyte;
SceOff offset;
} SceIoPreadSyscallArgs;
 
SceSSize _sceIoPread(SceUID fd, SceIoPreadSyscallArgs *args);
</source>


=== _sceIoWriteAsync ===
=== _sceIoGetstatByFdAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xC92AF88F
| 1.69 || 0x554292F0
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoOpen ===
=== _sceIoChstatByFdAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xCC67B6FD
| 1.69 || 0x58010F40
|-
|-
| 3.60 || 0xCC67B6FD
| 3.60 || different NID or not present
|}
 
=== _sceIoGetThreadDefaultPriority ===
{| class="wikitable"
|-
! Version !! NID
|-
|-
| 1.69 || 0x5DC29460
|-
| 3.60 || different NID or not present
|}
=== _sceIoSync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0x5DD867F7
|}
|}


<source lang="C">
<source lang="C">
struct sceIoOpenOpt
typedef struct sceIoSyncOpt {
{
   uint32_t unk_0;
   uint32_t unk_0;
   uint32_t unk_4;
   uint32_t unk_4;
};
} sceIoSyncOpt;


SceUID _sceIoOpen(const char *file, int flags, SceMode mode, sceIoOpenOpt *opt);
int _sceIoSync(const char* device, unsigned int unk, sceIoSyncOpt* opt);
</source>
</source>


=== sceIoCancel ===
=== _sceIoRemoveAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xCEF48835
| 1.69-3.60 || 0x5FFA47E2
|-
| 3.60 || 0xCEF48835
|-
|}
|}


=== sceIoComplete ===
=== _sceIoDreadAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xD1C49D2F
| 1.69 || 0x64B233B8
|-
| 3.60 || 0xD1C49D2F
|-
|-
| 3.60 || different NID or not present
|}
|}


=== _sceIoChstat ===
=== _sceIoSetThreadDefaultPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xD2EE455F
| 0.990-1.69 || 0x654E27B1
|-
| 3.60 || 0xD2EE455F
|-
|-
| 3.60 || different NID or not present
|}
|}


<source lang="C">
=== _sceIoSyncByFdAsync ===
struct sceIoChstatOpt
{
  uint32_t unk_0;
  uint32_t unk_4;
};
 
int _sceIoChstat(const char *file, SceIoStat *stat, int bits, sceIoChstatOpt *opt);
</source>
 
=== _sceIoSetProcessDefaultPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xD302DCB9
| 1.69 || 0x6F78FAFE
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoGetstatAsync ===
=== _sceIoGetPriorityForSystem ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xD414C89F
| 1.69 || 0x70B7BB52
|-
| 3.60 || 0xD414C89F
|-
|-
| 3.60 || different NID or not present
|}
|}


=== sceIoDcloseAsync ===
=== sceIoReadAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xDC2D7D38
| 1.69-3.60 || 0x773EBD45
|-
| 3.60 || 0xDC2D7D38
|-
|}
|}


=== _sceIoIoctlAsync ===
=== _sceIoRemove ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xE00DC256
| 1.69-3.60 || 0x78955C65
|-
| 3.60 || 0xE00DC256
|-
|}
|}


=== _sceIoChstatByFd ===
<source lang="C">
typedef struct sceIoRemoveOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoRemoveOpt;
 
int _sceIoRemove(const char *filename, sceIoRemoveOpt* opt);
</source>
 
=== sceIoSyncByFdAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xE0BE2A30
| 1.69-3.60 || 0x7E1367CB
|-
| 3.60 || 0xE0BE2A30
|-
|}
|}


<source lang="C"> int _sceIoChstatByFd(SceUID uid, void *unk1, int unk2); </source>
=== sceIoSetProcessDefaultPriority ===
 
=== sceIoWriteAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xE0D63D2A
| 1.69-3.60 || 0x7F2ABBAF
|}
 
=== _sceIoRenameAsync ===
{| class="wikitable"
|-
|-
| 3.60 || 0xE0D63D2A
! Version !! NID
|-
|-
| 1.69-3.60 || 0x81794921
|}
|}


=== _sceIoGetstatByFd ===
=== _sceIoSyncAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xE6C53567
| 1.69-3.60 || 0x86DB0C0E
|}
 
=== _sceIoDread ===
{| class="wikitable"
|-
|-
| 3.60 || 0xE6C53567
! Version !! NID
|-
|-
| 1.69-3.60 || 0x8713D662
|}
|}


<source lang="C">int _sceIoGetstatByFd(SceUID fd, SceIoStat *stat);</source>
<source lang="C">int _sceIoDread(SceUID fd, SceIoDirent *dir);</source>


=== _sceIoSetPriorityForSystem ===
=== _sceIoWrite ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xE6C923B3
| 1.69 || 0x8C319CF0
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoDopen ===
=== _sceIoGetstat ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xE6E614B5
| 1.69-3.60 || 0x8E7E11F2
|-
| 3.60 || 0xE6E614B5
|-
|}
|}


<source lang="C">
<source lang="C">
struct sceIoDopenOpt
typedef struct sceIoGetstatOpt {
{
   uint32_t unk_0;
   uint32_t unk_0;
   uint32_t unk_4;
   uint32_t unk_4;
};
} sceIoGetstatOpt;
 
SceUID _sceIoDopen(const char *dirname, sceIoDopenOpt *opt);


int _sceIoGetstat(const char *name, SceIoStat *buf, sceIoGetstatOpt *opt);
</source>
</source>


=== sceIoGetPriorityForSystem ===
=== sceIoCloseAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xEF5432ED
| 1.69-3.60 || 0x8EA3616A
|-
| 3.60 || 0xEF5432ED
|-
|}
|}


=== sceIoGetPriority ===
=== _sceIoMkdir ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF2A472A1
| 1.69-3.60 || 0x8F1ACC32
|}
 
<source lang="C">
typedef struct sceIoMkdirOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoMkdirOpt;
 
int _sceIoMkdir(const char *dirname, SceIoMode mode, sceIoMkdirOpt opt);
</source>
 
=== _sceIoCompleteMultiple ===
{| class="wikitable"
|-
|-
| 3.60 || 0xF2A472A1
! Version !! NID
|-
|-
| 1.69-3.60 || 0x9111D004
|}
|}


=== _sceIoRead ===
=== _sceIoLseek32 ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF3C9E783
| 1.69 || 0x92BDA6DA
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoSyncByFd ===
=== _sceIoPwrite ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF437545D
| 1.69-3.60 || 0x9654094B
|-
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoCloseAsync ===
<source lang="C">
typedef struct sceIoPwriteOpt {
  SceOff offset;
  uint32_t unk_8;
  uint32_t unk_C;
} sceIoPwriteOpt;
 
int _sceIoPwrite(SceUID uid, const void *data, int size, sceIoPwriteOpt *opt);
 
// 3.60
typedef struct SceIoPwriteSyscallArgs {
const void *buf;
SceSize nbyte;
SceOff offset;
} SceIoPwriteSyscallArgs;
 
SceSSize _sceIoPwrite(SceUID fd, SceIoPwriteSyscallArgs *args);
</source>
 
=== _sceIoGetPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF4E13260
| 1.69 || 0x9E3F880D
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoDopenAsync ===
=== sceIoGetThreadDefaultPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF58286C3
| 1.69-3.60 || 0xA176CD03
|-
| 3.60 || different NID or not present
|-
|}
|}


=== sceIoDreadAsync ===
=== _sceIoLseek ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF59F37B0
| 1.69-3.60 || 0xA604764A
|-
| 3.60 || 0xF59F37B0
|-
|}
|}


=== _sceIoMkdirAsync ===
<source lang="C">
typedef struct _sceIoLseekOpt { // size is 0x10
  SceOff offset;
  int whence;
  uint32_t unk;
} _sceIoLseekOpt;
 
SceOff _sceIoLseek(SceUID fd, _sceIoLseekOpt* opt);
 
// 3.60
typedef struct SceIoLseekSyscallArgs {
SceOff offset;
int whence;
int padding;
} SceIoLseekSyscallArgs;
 
SceOff _sceIoLseek(SceUID fd, SceIoLseekSyscallArgs *args);
</source>
 
=== sceIoChstatByFdAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF5C58B21
| 1.69-3.60 || 0xA9F89275
|-
| 3.60 || 0xF5C58B21
|-
|}
|}


=== _sceIoCancel ===
=== _sceIoGetProcessDefaultPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF5DEEA19
| 1.69 || 0xB0486482
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoClose ===
=== _sceIoSetPriority ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xF69FB394
| 0.990-1.69 || 0xB14192F0
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|-
|}
|}


=== _sceIoDclose ===
=== _sceIoReadAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xFAFF0002
| 1.69 || 0xB2B891E6
|-
|-
| 3.60 || different NID or not present
| 3.60 || different NID or not present
|}
=== _sceIoPwriteAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
|-
| 1.69-3.60 || 0xB2D0B2F4
|}
|}


=== sceIoGetThreadDefaultPriorityForSystem ===
=== _sceIoChstatAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xB4B021D9
|}
 
=== sceIoSetThreadDefaultPriorityForSystem ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xB9C9C9CF
|}
 
=== _sceIoPreadAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xBCF5684D
|}
 
=== sceIoDopenAsync ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xFCBCEAED
| 1.69-3.60 || 0xC49C312F
|-
|}
| 3.60 || 0xFCBCEAED
 
|-
=== sceIoClose ===
|}
{| class="wikitable"
 
|-
=== sceIoRead ===
! Version !! NID
{| class="wikitable"
|-
|-
| 1.69-3.60 || 0xC70B8886
! Version !! NID
|}
|-
 
| 1.69 || 0xFDB32293
<source lang="C">int sceIoClose(SceUID fd);</source>
|-
 
| 3.60 || 0xFDB32293
=== _sceIoWriteAsync ===
|-
{| class="wikitable"
|}
|-
 
! Version !! NID
<source lang="C">sceIoRead(SceUID fd, void *data, SceSize size);</source>
|-
 
| 1.69 || 0xC92AF88F
=== _sceIoRmdir ===
|-
{| class="wikitable"
| 3.60 || different NID or not present
|-
|}
! Version !! NID
 
|-
=== _sceIoOpen ===
| 1.69 || 0xFFFB4D76
{| class="wikitable"
|-
|-
| 3.60 || 0xFFFB4D76
! Version !! NID
|-
|-
|}
| 1.69-3.60 || 0xCC67B6FD
 
|}
<source lang="C">
 
typedef struct sceIoRmdirOpt
<source lang="C">
{
typedef struct sceIoOpenOpt {
   uint32_t unk_0;
  uint32_t unk_0;
   uint32_t unk_4;
  uint32_t unk_4;
}sceIoRmdirOpt;
} sceIoOpenOpt;
 
 
int _sceIoRmdir(const char *path, sceIoRmdirOpt* opt);
SceUID _sceIoOpen(const char *filename, int flag, SceIoMode mode, sceIoOpenOpt *opt);
</source>
</source>
 
 
== Device Drivers ==
=== sceIoCancel ===
 
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xCEF48835
|}
 
=== sceIoComplete ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xD1C49D2F
|}
 
=== _sceIoChstat ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xD2EE455F
|}
 
<source lang="C">
typedef struct sceIoChstatOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoChstatOpt;
 
int _sceIoChstat(const char *name, const SceIoStat *stat, unsigned int cbit, sceIoChstatOpt *opt);
</source>
 
=== _sceIoSetProcessDefaultPriority ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990-1.69 || 0xD302DCB9
|-
| 3.60 || different NID or not present
|}
 
=== _sceIoGetstatAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xD414C89F
|}
 
=== sceIoDcloseAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xDC2D7D38
|}
 
=== _sceIoIoctlAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xE00DC256
|}
 
=== _sceIoChstatByFd ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xE0BE2A30
|}
 
<source lang="C">int _sceIoChstatByFd(SceUID fd, const SceIoStat *buf, unsigned int cbit);</source>
 
=== sceIoWriteAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xE0D63D2A
|}
 
=== _sceIoGetstatByFd ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xE6C53567
|}
 
<source lang="C">int _sceIoGetstatByFd(SceUID fd, SceIoStat *stat);</source>
 
=== _sceIoSetPriorityForSystem ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990-1.69 || 0xE6C923B3
|-
| 3.60 || different NID or not present
|}
 
=== _sceIoDopen ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xE6E614B5
|}
 
<source lang="C">
typedef struct sceIoDopenOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoDopenOpt;
 
SceUID _sceIoDopen(const char *dirname, sceIoDopenOpt *opt);
</source>
 
=== sceIoGetPriorityForSystem ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xEF5432ED
|}
 
=== sceIoGetPriority ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xF2A472A1
|}
 
=== _sceIoRead ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || different NID or not present
|}
 
=== _sceIoSyncByFd ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || different NID or not present
|}
 
=== _sceIoCloseAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || different NID or not present
|}
 
=== _sceIoDopenAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || different NID or not present
|}
 
=== sceIoDreadAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xF59F37B0
|}
 
=== _sceIoMkdirAsync ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xF5C58B21
|}
 
=== _sceIoCancel ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69 || 0xF5DEEA19
|-
| 3.60 || different NID or not present
|}
 
=== _sceIoClose ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69 || 0xF69FB394
|-
| 3.60 || different NID or not present
|}
 
=== _sceIoDclose ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990-1.69 || 0xFAFF0002
|-
| 3.60 || different NID or not present
|}
 
=== sceIoGetThreadDefaultPriorityForSystem ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xFCBCEAED
|}
 
=== sceIoRead ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xFDB32293
|}
 
<source lang="C">sceIoRead(SceUID fd, void *data, SceSize size);</source>
 
=== _sceIoRmdir ===
{| class="wikitable"
|-
! Version !! NID
|-
| 1.69-3.60 || 0xFFFB4D76
|}
 
<source lang="C">
typedef struct sceIoRmdirOpt {
   uint32_t unk_0;
   uint32_t unk_4;
} sceIoRmdirOpt;
 
int _sceIoRmdir(const char *dirname, sceIoRmdirOpt* opt);
</source>
 
== Device Drivers ==
 
[[Category:ARM]]
[[Category:Kernel]]
[[Category:Modules]]
[[Category:Modules]]
[[Category:Kernel]]
[[Category:Library]]

Latest revision as of 18:38, 19 June 2024

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 os0:kd/iofilemgr.skprx.

Version World Privilege
0.990-3.60 Non-secure Kernel

Libraries

Known NIDs

Version Name World Visibility NID
1.69-3.60 SceIofilemgrForDriver Non-secure Kernel 0x40FD29C7
1.69-3.60 SceIofilemgr Non-secure User 0xF2FF276E

Debug callback type

Type When
0x0 Scheduled sceIoOpen start
0x1 Scheduled sceIoOpen end
0x2 sceVopOpen start
0x3 sceVopOpen end
0x4 Scheduled sceIoClose start
0x5 Scheduled sceIoClose end
0x6 sceVopClose start
0x7 sceVopClose end
0x8 Scheduled sceIoRead start
0x9 Scheduled sceIoRead end
0xA sceVopRead start
0xB sceVopRead end
0xC Scheduled sceIoWrite start
0xD Scheduled sceIoWrite end
0xE sceVopWrite start
0xF sceVopWrite end
0x10 Scheduled sceIoPread start
0x11 Scheduled sceIoPread end
0x12 sceVopPread start
0x13 sceVopPread end
0x14 Scheduled sceIoPwrite start
0x15 Scheduled sceIoPwrite end
0x16 sceVopPwrite start
0x17 sceVopPwrite end
0x18 Scheduled sceIoLseek start
0x19 Scheduled sceIoLseek end
0x1A sceVopLseek start
0x1B sceVopLseek end
0x1C Scheduled sceIoMkdir start
0x1D Scheduled sceIoMkdir end
0x1E sceVopMkdir start
0x1F sceVopMkdir end
0x20 Scheduled sceIoRmdir start
0x21 Scheduled sceIoRmdir end
0x22 sceVopRmdir start
0x23 sceVopRmdir end
0x24 Scheduled sceIoGetstat start
0x25 Scheduled sceIoGetstat end
0x26 sceVopGetstat start
0x27 sceVopGetstat end
0x28 Scheduled sceIoRemove start
0x29 Scheduled sceIoRemove end
0x2A sceVopRemove start
0x2B sceVopRemove end
0x2C Scheduled sceIoRename start
0x2D Scheduled sceIoRename end
0x2E sceVopRename start
0x2F sceVopRename end
0x30 -
0x31 -
0x32 Scheduled sceIoDopen start
0x33 Scheduled sceIoDopen end
0x34 sceVopDopen start
0x35 sceVopDopen end
0x36 Scheduled sceIoDread start
0x37 Scheduled sceIoDread end
0x38 sceVopDread start
0x39 sceVopDread end
0x3A Scheduled sceIoDclose start
0x3B Scheduled sceIoDclose end
0x3C sceVopDclose start
0x3D sceVopDclose end
0x3E Scheduled sceIoChstat start
0x3F Scheduled sceIoChstat end
0x40 sceVopChstat start
0x41 sceVopChstat end
0x42 Scheduled sceIoIoctl start
0x43 Scheduled sceIoIoctl end
0x44 sceVopIoctl start
0x45 sceVopIoctl end
0x46 Scheduled sceIoSync start
0x47 Scheduled sceIoSync end
0x48 sceVopSync start
0x49 sceVopSync end
0x4A Scheduled sceIoFgetstat start
0x4B Scheduled sceIoFgetstat end
0x4C sceVopFgetstat start/end
0x4D -
0x4E Scheduled sceIoFchstat start
0x4F Scheduled sceIoFchstat end
0x50 sceVopFchstat start
0x51 sceVopFchstat end
0x52 sceVopLookup start
0x53 sceVopLookup end
0x54 sceVopCreate start
0x55 sceVopCreate end
0x56 sceVopInactive start
0x57 sceVopInactive end
0x58 sceVopWhiteout start
0x59 -
0x5A sceVopWhiteout end
0x5B sceVopCleanup start
0x5C sceVopCleanup end
0x5D sceVfsOpMount start
0x5E sceVfsOpMount end
0x5F sceVfsOpUnmount start
0x60 sceVfsOpUnmount end
0x61 sceVfsOpDevctl start
0x62 sceVfsOpDevctl end
0x63 sceVfsOpSync start
0x64 sceVfsOpSync end
0x65 sceVfsOpDecodePathElem start
0x66 sceVfsOpDecodePathElem end

Mount Points

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

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

  • <rnd> means random numeric string of length 13

See SceSdstor for "sdstor0:" Block Device.

Unix Mount Dev Major Dev Minor fsName assignName blockdevName VSH Mount Id Comment
/PD<rnd> 0x3 0x1001 PFS_GDSD_INF PD<rnd>0 - 0x0 -
/sd/exfat 0x2030001 0x30002 exfat sd0: sdstor0:ext-lp-act-entire 0x100 -
/os/exfat 0x1000001 0x1002 exfat os0: sdstor0:int-lp-act-os 0x200 Formatted as FAT16.
/vs/exfat 0x1000001 0x1002 exfat vs0: sdstor0:int-lp-ign-vsh 0x300 Formatted as FAT16.
/vd/exfat 0x1000001 0x10002 exfat vd0: sdstor0:int-lp-ign-vshdata 0x400 Formatted as FAT16.
/tm/exfat 0x1000001 0x10002 exfat tm0: sdstor0:int-lp-ign-vtrm 0x500 Formatted as FAT16.
/ur/exfat 0x1000001 0x50002 exfat ur0: sdstor0:int-lp-ign-user 0x600 Formatted as exFAT.
/ud/exfat 0x1000001 0x10002 exfat ud0: sdstor0:int-lp-ign-updater 0x700 Formatted as FAT16.
/ux/exfat 0x2020001 0x30002 exfat ux0: External: sdstor0:xmc-lp-ign-userext
Internal: sdstor0:int-lp-ign-userext
0x800 Formatted as exFAT.
/gro/exfat 0x2010001 0x21002 exfat gro0: sdstor0:gcd-lp-ign-gamero 0x900 Formatted as exFAT.
/grw/exfat 0x2010001 0x20002 exfat grw0: sdstor0:gcd-lp-ign-gamerw 0xA00 Formatted as exFAT.
/sa/exfat 0x1000001 0x1002 exfat sa0: sdstor0:int-lp-ign-sysdata 0xB00 Formatted as FAT16.
/pd/exfat 0x1000001 0x1002 exfat pd0: sdstor0:int-lp-ign-pidata 0xC00 Formatted as exFAT.
/imc/exfat 0x2020001 0x30002 exfat imc0: sdstor0:int-lp-ign-userext 0xD00 Formatted as exFAT.
/xmc/exfat 0x2020001 0x30002 exfat xmc0: sdstor0:xmc-lp-ign-userext 0xE00 Formatted as exFAT.
/uma/exfat 0x2030001 0x2 exfat uma0: sdstor0:uma-lp-act-entire 0xF00 -
/tty 0x4000020 0x6003 dummy_ttyp_dev_fs tty dummy_ttyp_dev_fs 0x0 -
/dev 0x10 0x3 sdstor_dev_fs sdstor0: sd 0x1 -
/md 0x10 0x2003 md_dev_fs md0: md 0x2 -
/lma/exfat 0x1 0x5 exfat lma0: / 0x10000 -
/lmb/exfat 0x1 0x5 exfat lmb0: / 0x20000 -
/mfa/exfat 0x1 0x5 exfat mfa0: / 0x50000 -
/mfb/exfat 0x1 0x5 exfat mfb0: / 0x60000 -
/host 0x3000004 0x8006 - host0: deci4p_drfp_dev_fs - -

Dev Minor

Mask Value Comment
0xFF - type
0xFF00 - flags
0xFF00 0x1000 Read Only
0xFF0000 0x10000 Invalidate fd on susppend/resume within process/system
0xFF0000 0x20000 External media

VFS Implementation

Information can be found on separate page VFS Implementation

Note

Max vfs node number is 0x1000.

Types

typedef struct SceIoMount { // size is 0x34-bytes
	void *mnt;
	int mntId;
	char assignName[0x20];
	SceUInt32 openedEntryNum;
	SceBool unk_0x2C;
	int unk_0x30;
} SceIoMount;

typedef struct SceIoMountInfo { // size is 0x54C-bytes
	void *mnt;
	int mntId;
	char assignName[0x20];
	SceUInt32 openedEntryNum;
	int unk_0x2C;
	int unk_0x30;
	int unk_0x34;
	int unk_0x38;
	int unk_0x3C;
	int unk_0x40;
	int unk_0x44;
	int unk_0x48;
	int unk_0x4C;
	int unk_0x50;
	int unk_0x54;
	int unk_0x58;
	int unk_0x5C;
	int unk_0x60;
	int unk_0x64;
	int unk_0x68;
	int unk_0x6C;
	int unk_0x70;
	int unk_0x74;
	int unk_0x78;
	int unk_0x7C;
	int unk_0x80;
	int unk_0x84;
	char unk_0x88[0x400];
	int unk_0x488;
	char unk_0x48C[0x40];
	char blockdevName[0x40];
	char unk_0x50C[0x40];
} SceIoMountInfo;

typedef struct vfs_node_info { // size is 0x38
   char name[0x20];
   vfs_node* node; // can be zero
   uint32_t unk_24; // probably size of vfs_node
   uint32_t unk_28; // probably flags
   vfs_node_info* node_info_2C; // can be zero
   vfs_node_info* node_info_30; // can be zero
   vfs_node_info* node_info_34; // can be zero
} vfs_node_info;

// It looks like this structure is used to get some response into "error" field
// when executing sceKernelSignalCondTo calls.
// This structure is used by SceIofileDaemon when it monitors mount/unmount async requests
// in SceIofilemgrMount thread using SceIofilemgrMount conditional variable.
// Upon completion it issues the signal and result of operation is stored in error field.
// It looks like operations 1/2 are used for normal filesystems.
// Operations 3/4 are used for PFS_GDSD_INF filesystem.
typedef struct cond_ctx {
   uint32_t op_index; // operation index. 1,3 - mount. 2,4 - unmount
   uint32_t unk_4;
   uint32_t unk_8;
   uint32_t unk_C;
   uint32_t unk_10;
   uint32_t unk_14;
   uint32_t unk_18;
   uint32_t unk_1C;
   int error; // either error code or 0
   cond_ctx* next; // 0 means end of list
} cond_ctx;

typedef struct ctx_19D4 {
   void* unk_0; 
   uint32_t unk_4;
   vfs_node* offset; // Pool of vfs_nodes with 0x1000 elements.
                     // It is used in sceVfsGetNewVnodeForDriver, mount/unmount and node find routines.
   uint32_t size;

   uint32_t count;
   uint32_t unk_14;
   uint32_t unk_18;
   uint32_t unk_1C;
} ctx_19D4;

typedef struct ctx_11C { //size is 0x220
   void* unk_0; 
   uint32_t unk_4;
   void* offset; // pointer to array of byte size 0x10000 with 0x40 elements of size 0x400
   uint32_t size;

   uint32_t count;

   uint8_t data[0x20C];
} ctx_11C;

typedef struct io_scheduler_dispatcher { //size is 0xB8
   char unk_0[0x50];

   io_scheduler* unk_50; // Internal storage
   io_scheduler* unk_54; // Gamecard
   io_scheduler* unk_58; // Removable media (memory card)
   io_scheduler* unk_5C; // Host File System (host0:)
   io_scheduler* unk_60; // Default
   
   uint32_t unk_64; // pointer to unknown module data section
   uint32_t unk_68; // SceIoSchedulerDispatcher fast mutex
   uint32_t unk_6C;
   
   char unk_70[0x30];
   
   uint32_t unk_A0;
   uint32_t unk_A4;
   
   SceUID unk_A8; // SceIoSchedulerDispatcher event flag uid
   uint32_t unk_AC; // counter
   uint32_t unk_B0; // flag
   uint32_t unk_B4; // 0
   
} io_scheduler_dispatcher;

typedef struct io_scheduler_item { // size is 0x14 - allocated from SceIoScheduler heap
   io_scheduler* unk_0; // parent
   uint32_t unk_4; // 0
   uint32_t unk_8; // 0
   uint32_t unk_C; // 0
   uint32_t unk_10; // pointer to unknown module data section
} io_scheduler_item;

enum io_device_code {
  Internal = 0x100,
  Game_Card = 0x201,
  Removable = 0x202,
  Host_File_System = 0x300,
  Default = 0x0
};

typedef struct io_scheduler { //size is 0xA8 - allocated from SceIoScheduler heap
   io_device_code unk_0; 
   io_scheduler_item* unk_4; // item 0
   io_scheduler_item* unk_8; // item 1
   io_scheduler_item* unk_C; // item 2
   
   io_scheduler_item* unk_10; // item 3
   io_scheduler_item* unk_14; // item 4
   io_scheduler_item* unk_18; // item 5
   io_scheduler_item* unk_1C; // item 6
   
   io_scheduler_item* unk_20; // item 7
   io_scheduler_item* unk_24; // item 8
   io_scheduler_item* unk_28; // item 9
   io_scheduler_item* unk_2C; // item 10
   
   io_scheduler_item* unk_30; // item 11
   io_scheduler_item* unk_34; // item 12
   io_scheduler_item* unk_38; // item 13
   io_scheduler_item* unk_3C; // item 14
   io_scheduler_item* unk_40; // item 15
   
   uint32_t unk_44; // flag1 0x40000 or 0x00
   uint32_t unk_48; // flag2 0x40000 or 0x00
   io_scheduler_dispatcher* unk_4C; // parent
   
   SceUID unk_50; // SceIoScheduler mutex
   SceUID unk_54; // SceIoScheduler cond
   
   char unk_58; // 0
   char unk_59; // 0
   char unk_5A; // 0
   char unk_5B; // 0
   
   uint32_t unk_5C; // 0
   
   // this is probably a separate structure
   SceUID unk_60; // SceIoSchedWorker thread id
   SceUID unk_64; // SceIoScheduler mutex from self
   SceUID unk_68; // SceIoScheduler cond from self
   io_scheduler* unk_6C; // pointer to self
   
   uint32_t unk_70; // 0
   uint16_t unk_74; // 0
   uint16_t unk_76; // 0
   uint32_t unk_78; // 0
   uint32_t unk_7C; // 0
   
   uint32_t unk_80; //
   uint32_t unk_84; // some flag
   
   uint32_t unk_88; //0x80
   uint32_t unk_8C; //0x80
   
   uint32_t unk_90; //0x80
   uint32_t unk_94; //0x80
   uint32_t unk_98; //0x80
   uint32_t unk_9C; //0x80
   
   uint32_t unk_A0; // 0
   uint32_t unk_A4; // 0

} io_scheduler;

// Context used for dispatching i/o operations
typedef struct io_context { // size is 0xB8 on FW 3.60
   uint32_t unk_0;
   uint32_t unk_4;
   uint32_t unk_8;
   uint32_t unk_C;
   
   uint16_t unk_10;
   uint16_t unk_12;
   uint16_t unk_14;
   uint16_t unk_16;
   void *data_0; // 0x18
   uint32_t unk_1C; // 0x1C
   
   SceSize size_0; // 0x20
   uint32_t io_op_index; // 0x24
   uint32_t ioctlOutdata0; // 0x28
   io_device_code device_code; // 0x2C, ioctlOutdata1
   
   char async; // 0x30
   char unk_31;
   char unk_32;
   char unk_33;
   SceUID pid; // 0x34, sceKernelGetProcessIdForDriver
   SceUID threadId; // 0x38, sceKernelGetThreadIdForDriver
   SceUID tlsPid; // 0x3C, sceKernelGetProcessIdFromTLSForDriver
   
   uint32_t unk_40; // 0x40, SceThreadmgrForDriver_332E127C
   uint32_t cpuMask; // 0x44, sceKernelGetThreadCpuAffinityMaskForDriver
   uint32_t threadPriority; // 0x48, sceKernelGetThreadCurrentPriorityForDriver
   void* list0; // 0x4C, pointer to some linked list with elements of size 0x14
   
   uint32_t listSize; // 0x50, number of items in linst
   void* list1; // 0x54, pointer to some linked list with elements of size 0x14 
   uint32_t sizeOfList; // 0x58, size of list in bytes
   uint16_t state; // 0x5C, bit 16 of state where state = (MRC p15, 0, state, c13, c0, 3)
   uint16_t unk_5E; // 0x5E
   
   uint32_t unk_60; // 0x60
   SceUID fd; // 0x64
   void *data_1; // 0x68
   uint32_t unk_6C;
   
   SceSize size_1; // 0x70
   uint32_t unk_74; // 0x74
   uint32_t unk_78; // 0x78, -1
   uint32_t unk_7C; // 0x7C, -1
   
   uint32_t op_result; // 0x80, result of i/o operation
   uint32_t unk_84;
   void* unk_88;
   uint32_t unk_8C;
   
   uint32_t unk_90;
   uint32_t unk_94;
   uint32_t unk_98;
   uint32_t unk_9C;
   
   uint32_t unk_A0;
   uint32_t unk_A4;
   uint32_t unk_A8;
   uint32_t unk_AC;
   
   SceUInt64 sytemTimeWide; // 0xB0, sceKernelGetSystemTimeWideForDriver
} io_context;

typedef struct _SceVfsFileObject_0995 { //SceVfsFileClass object - size is 0x40 on 0.995
  /* SceKernelObject header not included in size nor structure */
  SceInt32 unk_0x0;
  SceInt32 unk_0x4;
  SceInt64 unk_0x8;
  SceInt32 unk_0x10; //Set to 1 during sceVfsAllocateFile
  ScePID creator_pid; //Result of sceKernelGetProcessIdFromTLS() during sceVfsAllocateFile
  void* unk_0x18; //Pointer provided as a1 to sceVfsAllocateFile
  SceUIDVfsFileObject* next; //Pointer to next file in linked list - list head is in a1
  SceInt32 unk_0x20;
  SceInt16 unk_0x24;
  char unk_0x26; //unused?
  SceInt8 unk_0x27;
  SceInt32 unk_0x28; //comes from a1->0x4C->0xC8
  SceInt32 unk_0x2C; //((a1->0x4C->0x50 & 0x20000) << 1) | (a1->0x4C->0x50 & 0x10000)
  SceInt32 unk_0x30;
  char unk_0x34; //unused?
  SceInt8 unk_0x35;
  SceInt8 unk_0x36;
  SceInt8 unk_0x37;
  SceInt8 unk_0x38;
  SceInt8 unk_0x39;
  SceInt8 unk_0x3A;
  SceInt8 unk_0x3B;
  SceInt8 unk_0x3C;
  SceInt8 unk_0x3D;
  SceInt8 unk_0x3E;
  SceInt8 unk_0x3F;
} SceUIDVfsFileObject_0995;

typedef struct _SceUIDVfsFileObject { //SceUIDVfsFileClass object - size is 0x48 on 3.60
  /* SceKernelObject header not included in size nor structure */
  SceInt32 unk_0x0;
  SceInt32 unk_0x4;
  SceInt64 unk_0x8;
  SceInt32 unk_0x10; //Set to 1 during sceVfsAllocateFile
  ScePID creator_pid; //Result of sceKernelGetProcessIdFromTLS() during sceVfsAllocateFile
  void* unk_0x18; //Pointer provided as a1 to sceVfsAllocateFile
  SceUIDVfsFileObject* next; //Pointer to next file in linked list - list head is in a1
  SceInt32 unk_0x20; //Zero'ed in constructor
  SceInt16 unk_0x24;
  char unk_0x26; //unused?
  SceInt8 unk_0x27;
  SceInt32 unk_0x28; //comes from a1->0x4C->0xC8
  SceInt32 unk_0x2C; //((a1->0x4C->0x50 & 0x20000) << 1) | (a1->0x4C->0x50 & 0x10000)
  SceInt32 unk_0x30;
  char unk_0x34; //unused?
  SceInt8 unk_0x35;
  SceInt8 unk_0x36;
  SceInt8 unk_0x37;
  SceInt8 unk_0x38; //Zero'ed during constructor
  SceInt8 unk_0x39; //^ doing *(SceInt32*)(&file->unk_0x38) = 0;
  SceInt8 unk_0x3A; //^
  SceInt8 unk_0x3B; //^
  SceInt8 unk_0x3C;
  SceInt8 unk_0x3D;
  SceInt8 unk_0x3E;
  SceInt8 unk_0x3F;
  char unk_0x40[8]; //unknown type - haven't seen this used yet
} SceUIDVfsFileObject;

typedef struct SceVfsPath { //size is 0xC-bytes
	char *name; // could be `const char *`?
	SceSize name_len;
	char *path; // could be `const char *`?
} SceVfsPath;

Data segment layout

Address Size Description
0x0000 0x4 unknown
0x0004 0x8 some index returned from initialization function 0xb645c7ef in SceThreadmgrForDriver
0x0008 0x4 unknown
0x000C 0x4 flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
0x00010 0x4 flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
0x00014 0x4 flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
0x00018 0x4 flag that enables usage of sceFiosKernel functions (like OverlayResolveSync) in i/o operations in transition from user to kernel
0x0001C 0x4 unknown
0x0020 0x4 SceIofileDevWaitForVC event flag SceUID
0x0024 0x4 unknown
0x0028 0x4 SceIofileDevWaitForSD event flag SceUID
0x002C 0x4 pointed by vfs_mount_cc for SceIofileDevWaitForSD
0x0030 0x4 SceIofileDevWaitForMC event flag SceUID
0x0034 0x4 unknown
0x0038 0x4 pointed by vfs_mount_cc for SceIofileDevWaitForVC
0x003C 0x4 pointed by vfs_mount_cc for SceIofileDevWaitForMC
0x0040 0x10 unknown
0x0050 0x4 address of some callback function called in all vfs operations
0x0054 0x4 SceIofile heap SceUID
0x0058 0x80 unknown
0x00D8 0x4 SceIoVfsHeap heap SceUID
0x00DC 0x4 SceIoFileDebug memblock SceUID
0x00E0 0x3C unknown
0x011C 0x4 ctx_11C* pointer to structure
0x0120 0x4C unknown
0x016C 0x10 char* static_buffers[4] - static buffers used instead of SceIoVfsHeap
0x017C 0x2C SceClass for SceVfsFile
0x01A8 0x1500 array of 96 elements of vfs_node_info
0x16A8 0x4 SceVfsRfsLock fast mutex
0x16AC 0x3C unknown
0x16E8 0x2C SceClass for SceIoMountEvent
0x1714 0xC unknown
0x1720 0x04 cond_ctx* pointer to the linked list
0x1724 0x4 SceIoScheduler heap SceUID
0x1728 0xB8 io_scheduler_dispatcher structure
0x17E0 0x2C SceClass for SceIoAsyncEvent - used in all async i/o operations
0x180C 0xC unknown
0x1818 0x2C SceClass for SceIoErrorEvent
0x1844 0xC unknown
0x1850 0x4 SceIofileDaemonLock fast mutex
0x1854 0x40 unknown
0x1894 0x4 SceIofile fast mutex
0x1898 0x7C unknown
0x1914 0x4 function pointer t_1914_callback
0x1918 0x4 SceIofileFlock fast mutex
0x191C 0x44 unknown
0x1960 0x4 some i/o flag
0x1964 0x4 flag that indicates that any i/o operation happened 1/0. changed by each i/o operation. cleared on suspend.
0x1968 0x18 unknown
0x1980 0x4 counter of not finished i/o operations. changed by each i/o operation.
0x1984 0xC unknown
0x1990 0x4 SceVfsMntlistLock fast mutex
0x1994 0x3C unknown
0x19D0 0x4 vfs_mount* singly linked list
0x19D4 0x1C structure ctx_19D4
0x19F0 0x8 unknown
0x19F8 0x4 address used for sceKernelCpuLockSuspendIntrStoreLRForDriver to lock 016C
0x19FC 0x4 vfs_mount* pointer
0x1A00 0x4 SceVfsNcacheLock fast mutex
0x1A04 0x40 unknown
0x1A44 0x4 address used for sceKernelCpuLockSuspendIntrStoreLRForDriver
0x1A48 0x4 unknown
0x1A4C 0x4 SceVfsLock fast mutex
0x1A50 0x3C unknown
0x1A8C 0x04 SceIofilemgrMount thread SceUID
0x1A90 0x700 array of 32 elements of vfs_mount_point_info
0x2190 0x4 SceIofilemgrMount cond SceUID
0x2194 0x4 SceIofilemgrMount SceUID mutexid
0x2198 0x4 flag that indicates that IoSchedulerDispatcher functionality is initialized 1/0
0x219C 0x4 unknown
0x21A0 0x40 unknown
0x21E0 0x20 unknown
0x2200 0x04 SceIofilemgrDaemon thread SceUID
0x2204 0x8 unknown
0x220C 0x4 SceIofilemgrDaemon event flag SceUID
0x2210 0x4 void* to heap alloc of size 0x100
0x2214 0x4 void* to heap alloc of size 0x100
0x2218 0x4 = 3
0x221C 0x20 vfs_add_data dummy_ttyp_dev_fs node

SceIofilemgrForDriver

sceVfsOpDevctlForDriver

Version NID
0.990-3.60 0xB07B307D

sceVfsOpDecodePathElemForDriver

Version NID
0.990-3.60 0xF7DAC0F5

sceVopOpenForDriver

Version NID
0.990-3.60 0x76B79BEC

sceVopCreateForDriver

Version NID
0.990-3.60 0x9E347C7D

sceVopCloseForDriver

Version NID
0.990-3.60 0x40944C2E

In logs it is sceVopClsoe.

sceVopLookupForDriver

Version NID
0.931-3.60 0xA5A6A55C

Temp name was sceVfsNodeInitializePartitionForDriver.

int sceVopLookupForDriver(SceVfsNode *pNode, SceVfsNode **ppNewNode, SceVfsPath *path_info, SceUInt32 flags);

sceVopReadForDriver

Version NID
0.990-3.60 0x570388A5

sceVopWriteForDriver

Version NID
0.990-3.60 0x9A68378D

sceVopLseekForDriver

Version NID
0.990-3.60 0xB2B13818

sceVopIoctlForDriver

Version NID
0.990-3.60 0x333C904D

sceVopRemoveForDriver

Version NID
3.60 0xDC1E7EE4

sceVopMkdirForDriver

Version NID
0.990-3.60 0x2F3F8C70

sceVopRmdirForDriver

Version NID
0.990-3.60 0x1D551105

sceVopDopenForDriver

Version NID
0.990-3.60 0x00C9C2DD

sceVopDcloseForDriver

Version NID
0.990-3.60 0x1350F5C7

sceVopDreadForDriver

Version NID
0.990-3.60 0x77584C8F

sceVopGetstatForDriver

Version NID
0.990-3.60 0x50A63ACF

sceVopChstatForDriver

Version NID
0.990-3.60 0x1974FA92

sceVopRenameForDriver

Version NID
0.990-3.60 0x36A794C7

sceVopPreadForDriver

Version NID
0.990-3.60 0xABBC80E3

sceVopPwriteForDriver

Version NID
0.990-3.60 0xA53C040D

sceVopInactiveForDriver

Version NID
0.990-3.60 0x8FB94521

sceVopLinkForDriver

Version NID
3.60 0x942AA61F

Temp name was sceVop_unk_offset_0x54_ForDriver.

sceVopUnlinkForDriver

Version NID
3.60 0x0D8A806E

Temp name was sceVop_unk_offset_0x58_ForDriver.

sceVopSyncForDriver

Version NID
0.990-3.60 0x9CD96406

sceVopFgetstatForDriver

Version NID
3.60 0x1DBCBB01

Temp name was sceVopGetStateByFdForDriver.

int sceVopFgetstatForDriver(SceVfsNode *pNode, SceVfsFileObject *pVfsFileObject, SceIoStat *stat);

sceVopFchstatForDriver

Version NID
3.60 0x082AFD7F

Temp name was sceVopChstatByFdForDriver.

int sceVopFchstatForDriver(SceVfsNode *pNode, SceVfsFileObject *pObject, SceIoStat *stat, int bit);

sceVopWhiteoutForDriver

Version NID
0.996-3.60 0xF53399BC

Temp name was sceVopTrashForDriver.

Move target node entry file/directory to xx0:/SceIoTrash/.

sceVopCleanupForDriver

Version NID
3.60 0x0F7E1718

Temp name was sceVop_unk_offset_0x6C_ForDriver.

sceVopZerofillForDriver

Version NID
0.996-3.60 0xEEAE8B51

Temp name was sceVop_unk_offset_0x70_ForDriver.

vfsIsLockedMntForDriver

Version NID
3.60 0xC468B5EF

some thread op

vfsBuffCacheCtlForDriver

Version NID
3.60 0xA7020B0D

Configures the IO Buffer Cache for vp

int vfsBuffCacheCtlForDriver(SceVfsNode *vp, int data_cache_size, int way, int line_size,int io_size);

vfsBuffCacheFreeForDriver

Version NID
3.60 0xD6AB5E4B

some node op

vfsLockVnodeForDriver

Version NID
0.995-3.60 0xAA45010B

Temp name was sceVfsNodeWaitEventFlagForDriver, sceVfsLockVnodeForDriver.

calls sceKernelWaitEventFlagForDriver using event_flag_SceVfsVnode from vfs_node

1. If the ownerId of the locked vnode is -1 (no anyone), set own thread as owner and leave the function.

2. If the ownerId is already mine, increment recursiveCount and leave the function.

3. If we get here we increment waiter.

4. Just to be sure, we do a check for 1 again and if the ownerId is -1, we set the ownerId to ourselves in the thread, then decrement waiter and leave the function.

5. If you've come this far, wait for the other owner to unlock the vnode with sceKernelWaitEventFlag.

6. Decrement the waiter and set the ownerId to its own thread and leave the function.

int vfsLockVnodeForDriver(vfs_node *node);

vfsUnlockVnodeForDriver

Version NID
0.990-3.60 0x6048F245

Temp name was sceVfsNodeSetEventFlagForDriver, sceVfsUnlockVnodeForDriver.

calls sceKernelSetEventFlagForDriver using event_flag_SceVfsVnode from vfs_node

1. The function fails if the ownerId is not its own thread.

2. If recursiveCount is not 0, decrement recursiveCount and leave the function.

3. If recursiveCount is 0, checks waiter value.

4. If waiter is not 0, set ownerId to 0xfffffffd, then notify other waiting threads of unlock with sceKernelSetEventFlag and leave the function.

5. Check ownerId and waiter again and execute 4 if there is a discrepancy with the first check.

6. Set waiter to 0 and ownerId to -1 and leave the function.

int vfsUnlockVnodeForDriver(vfs_node* node);

vfsMountForDriver

Version NID
0.990-3.60 0xB62DE9A6

This is a guessed name.

Temp name was sceVfsMountForDriver.

int vfsMountForDriver(vfs_mount_point_info_base *mnt);

vfsUmountForDriver

Version NID
1.69-3.60 0x9C7E7B76

Temp name was sceVfsUnmountForDriver.

int vfsUmountForDriver(vfs_unmount_data *data);

sceVfsAddVfsForDriver

Version NID
0.990-3.60 0x673D2FCD

Used by SceSdstor, SceTty2uart, SceKernelBlueScreenOfDeath.

int sceVfsAddVfsForDriver(vfs_add_data *data);

sceVfsDeleteVfsForDriver

Version NID
1.69-3.60 0x9CBFA725
int sceVfsDeleteVfsForDriver(const char *name, void **deleted_node);

vfsMountForPFSForDriver

Version NID
3.60 0xFEEE44A9

Temp name was scePfsMgrVfsMountForDriver.

operation index 3 in cond_ctx

// this function can be used with PFS_GDSD_INF filesystem
int vfsMountForPFSForDriver(vfs_mount_point_info_base *mnt, int unk1, int unk2);

vfsUmountForPFSForDriver

Version NID
3.60 0xD220539D

This is a guessed name.

Temp name was scePfsMgrVfsUmountForDriver.

operation index 4 in cond_ctx

int vfsUmountForPFSForDriver(vfs_unmount_data* umnt, int unk1, int unk2);

vfsLockMntForDriver

Version NID
3.60 0x6B3CA9F7

Temp name was sceVfsLockMntForDriver.

vfsUnlockMntForDriver

Version NID
3.60 0xDC2D8BCE

Temp name was sceVfsUnlockMntForDriver.

vfsGetNewVnodeForDriver

Version NID
0.990-3.60 0xD60B5C63

Temp name was sceVfsGetNewVnodeForDriver.

int vfsGetNewVnodeForDriver(vfs_mount *mnt, node_ops2 *ops, int unused, vfs_node **node);

vfsFreeVnodeForDriver

Version NID
0.990-3.60 0x21D57633

Temp name was sceVfsFreeVnodeForDriver.

vfsIsOwnerForDriver

Version NID
3.60 0xC3AE93A2

This is a guessed name.

Temp name was sceIoComparisonCurrentThreadIdForDriver.

SceBool vfsIsOwnerForDriver(void *vp);

vfsGetVnodeNameForDriver

Version NID
0.990-3.60 0xAA253B68

Temp name was sceVfsGetVnodeNameForDriver.

int vfsGetVnodeNameForDriver(SceVfsNode *vp, char *name, SceSize n, SceSize *result);

vfsAllocateFileForDriver

Version NID
0.995-3.60 0xBBAC1751

Temp name was sceVfsAllocateFileForDriver.

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

// type of a1 is unknown for now - at least 0x98 bytes wide

// FW 0.995
SceUID vfsAllocateFileForDriver(void *vp, SceUIDVfsFileObject **ppFile);

// FW 3.60
// If name is NULL, default name (same as 0.995, "SceVfsFile") is used as object name
// Else, name will be created with snprintf("file %s %s", something_from_a1, name);
SceUID vfsAllocateFileForDriver(void *vp, SceVfsFileObject **ppFile, const char *name);

vfsAllocateFileDummyForDriver

Version NID
3.60 0xCDF3EF52

This is a guessed name.

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

vfsFreeFileForDriver

Version NID
0.990-3.60 0xC85E33A2

Temp name was sceVfsFreeFileForDriver.

Frees a file created with vfsAllocateFileForDriver.

SceInt32 vfsFreeFileForDriver(void *vp, SceUID file_uid);

vfsRmdevForDriver

Version NID
3.60 0x69A7E076

Temp name was sceVfsRmdevForDriver.

vfsOpenForDriver

Version NID
3.60 0x0E518FA9

Temp name was t_sceIoOpenForDriver, sceVfsOpenForDriver.

thread callback for sceIoOpenForDriver

typedef struct SceVfsOpenArgs {
  const char *filename;
  int flag;
  SceIoMode mode;
} SceVfsOpenArgs;

SceUID vfsOpenForDriver(SceVfsOpenArgs *argp);

vfsCloseForDriver

Version NID
3.60 0x1AE14011

Temp name was t_sceIoCloseForDriver, sceVfsCloseForDriver.

thread callback for sceIoCloseForDriver

typedef struct SceVfsCloseArgs {
  SceUID fd;
} SceVfsCloseArgs;

int vfsCloseForDriver(SceVfsCloseArgs *argp);

vfsReadForDriver

Version NID
3.60 0x809892C1

Temp name was t_sceIoReadForDriver, sceVfsReadForDriver.

thread callback for sceIoReadForDriver

typedef struct SceVfsReadArgs {
  SceUID fd;
  void *data;
  SceSize size;
} SceVfsReadArgs;

int vfsReadForDriver(SceVfsReadArgs *argp);

vfsWriteForDriver

Version NID
3.60 0x8598ADC3

Temp name was t_sceIoWriteForDriver, sceVfsWriteForDriver.

thread callback for sceIoWriteForDriver

typedef struct SceVfsWriteArgs {
  SceUID fd;
  const void *data;
  SceSize size;
} SceVfsWriteArgs;

int vfsWriteForDriver(SceVfsWriteArgs *argp);

vfsIoctlForDriver

Version NID
3.60 0xC1DD4317

This is a guessed name.

Temp name was t_sceIoIoctlForDriver, sceVfsIoctlForDriver.

thread callback for sceIoIoctlForDriver

typedef struct SceVfsIoctlArgs {
  SceUID fd;
  unsigned int cmd;
  void *indata;
  int inlen;
  void *outdata;
  int outlen;
} SceVfsIoctlArgs;

int vfsIoctlForDriver(SceVfsIoctlArgs *argp);

vfsChstatForDriver

Version NID
3.60 0xBCE4865B

Temp name was t_sceIoChstatForDriver, sceVfsChstatForDriver.

thread callback for sceIoChstatForDriver

typedef struct SceVfsChstatArgs {
   const char *path;
   const SceIoStat *stat;
   unsigned int cbit;
   uint32_t store_attr;
} SceVfsChstatArgs;

int vfsChstatForDriver(SceVfsChstatArgs *argp);

vfsChstatByFdForDriver

Version NID
3.60 0x7517FE29

Temp name was t_sceIoChstatByFdForDriver, sceVfsChstatByFdForDriver.

thread callback for sceIoChstatByFdForDriver

typedef struct SceVfsChstatByFdArgs {
  SceUID fd;
  const SceIoStat *buf,
  unsigned int cbit;
} SceVfsChstatByFdArgs;

int vfsChstatByFdForDriver(SceVfsChstatByFdArgs *args);

vfsPreadForDriver

Version NID
3.60 0x0B54F9E0

Temp name was t_sceIoPreadForDriver, sceVfsPreadForDriver.

thread callback for sceIoPreadForDriver

typedef struct SceVfsPreadArgs {
   SceUID uid;
   void *data;
   SceSize size;
   int paddind; // unused
   SceOff offset;
} SceVfsPreadArgs;

int vfsPreadForDriver(SceVfsPreadArgs *argp);

vfsPwriteForDriver

Version NID
3.60 0xE5DEA6B7

Temp name was t_sceIoPwriteForDriver, sceVfsPwriteForDriver.

thread callback for sceIoPwriteForDriver

typedef struct SceVfsPwriteArgs {
   SceUID uid;
   const void *data;
   SceSize size;
   int padding;
   SceOff offset;
} SceVfsPwriteArgs;

int vfsPwriteForDriver(SceVfsPwriteArgs *argp);

vfsGetMntInfoForDriver

Version NID
3.60 0xB987450D

This is a guessed name.

Temp name was sceIoGetMountInfoForDriver.

int vfsGetMntInfoForDriver(void *mnt, SceIoMountInfo *pInfo);

vfsGetMntListForDriver

Version NID
3.60 0xC20C621C

This is a guessed name.

Temp name was sceIoGetMountVectorForDriver.

int vfsGetMntList(SceIoMount *pMount, SceUInt32 nMount, SceUInt32 *pnMount);

sceIoMountForDriver

Version NID
3.60 0xD070BC48

operation index 1 in cond_ctx

// intermediate function between sceAppMgrGameDataMountForDriver and sceVfsMountForDriver
int sceIoMountForDriver(int vshMountId, const char *path, int flags, int unk3, int arg_0, int arg_4);

sceIoUmountForDriver

Version NID
3.60 0x20574100

operation index 2 in cond_ctx

// intermediate function between sceAppMgrUmountForDriver and sceVfsUnmountForDriver
int sceIoUmountForDriver(int vshMountId, int unk1, int unk2, int unk3);

sceIoRmdevForDriver

Version NID
0.990-3.60 0xA39A9CA7

Like sceIoRemove?

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

int sceIoRmdevForDriver(const char *path, int flags, int a3, int a4);

sceIoDelDrvForDriver

Version NID
0.931 0xD51774E3
3.60 not present

Example: "tty"

int sceIoDelDrvForDriver(const char *drv);

sceIoAddDrvForDriver

Version NID
0.931 0x1D8AC9A7
3.60 not present
int sceIoAddDrvForDriver(const char **drv);

sceIoDreadForDriver

Version NID
1.69-3.60 0x20CF5FC7

Call interface is same as sceIoDread.

int sceIoDreadForDriver(SceUID fd, SceIoDirent *dir);

sceIoDreadForVshbridgeForDriver

Version NID
0.995-3.60 0x03051B02

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.

int sceIoDreadForVshbridgeForDriver(SceUID fd, SceIoDirent *dir);

sceIoWriteForDriver

Version NID
1.69-3.60 0x21EE91F0

Call interface is same as sceIoWrite

int sceIoWriteForDriver(SceUID fd, const void *data, SceSize size);

sceIoDopenForDriver

Version NID
1.69-3.60 0x463B25CC

Call interface is same as sceIoDopen

SceUID sceIoDopenForDriver(const char *dirname);

sceIoLseekForDriver

Version NID
0.931-3.60 0x62090481

Call interface is same as sceIoLseek

SceOff sceIoLseekForDriver(SceUID fd, SceOff offset, int whence);

sceIoOpenForDriver

Version NID
0.931-3.60 0x75192972

Call interface is same as sceIoOpen.

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

SceUID sceIoOpenForDriver(const char *filename, int flag, SceIoMode mode);

sceIoOpenForPidForDriver

Version NID
3.60 0xC3D34965

This is a wrapper for sceIoOpenForDriver.

Pid is used for sceFiosKernelOverlayResolveSyncForDriver.

SceUID sceIoOpenForPidForDriver(SceUID pid, const char *filename, int flag, SceIoMode mode);

sceIoChstatForDriver

Version NID
1.69-3.60 0x7D42B8DC

Call interface is same as sceIoChstat

int sceIoChstatForDriver(const char *name, const SceIoStat *buf, unsigned int cbit);

sceIoChstatForVshbridgeForDriver

Version NID
0.995-3.60 0x1F98BD50

Temp name was sceIoChstatForDriver_2. Derived from _vshIoChstat.

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

int sceIoChstatForVshbridgeForDriver(const char *name, const SceIoStat *buf, unsigned int cbit);

sceIoGetstatForDriver

Version NID
1.69-3.60 0x75C96D25

Call interface is same as sceIoGetstat.

int sceIoGetstatForDriver(const char *name, SceIoStat *buf);

sceIoGetstatForVshbridgeForDriver

Version NID
0.995-3.60 0xD6503624

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.

int sceIoGetstatForVshbridgeForDriver(const char *name, SceIoStat *buf);

sceIoMkdirForDriver

Version NID
1.69-3.60 0x7F710B25

Call interface is same as sceIoMkdir

int sceIoMkdirForDriver(const char *dirname, SceIoMode mode);

sceIoReadForDriver

Version NID
1.69-3.60 0xE17EFC03

Call interface is same as sceIoRead

int sceIoReadForDriver(SceUID fd, void *buf, SceSize nbyte);

sceIoCloseForDriver

Version NID
1.69-3.60 0xF99DD8A3

Call interface is same as sceIoClose

int sceIoCloseForDriver(SceUID fd);

sceIoRenameForDriver

Version NID
1.69-3.60 0xDC0C4997

Call interface is same as sceIoRename

int sceIoRenameForDriver(const char *oldname, const char *newname);

sceIoRemoveForDriver

Version NID
1.69-3.60 0x0D7BB3E1

Call interface is same as sceIoRemove

int sceIoRemoveForDriver(const char *filename);

sceIoCancelForDriver

Version NID
3.60 0x6D59658D

Derived from sceIoCancel

sceIoChstatAsyncForDriver

Version NID
3.60 0x7EC442BF

Derived from _sceIoChstatAsync

sceIoChstatByFdAsyncForDriver

Version NID
3.60 0xEC974400

Derived from sceIoChstatByFdAsync

sceIoChstatByFdForDriver

Version NID
3.60 0xDF57A75F

Derived from _sceIoChstatByFd

int sceIoChstatByFdForDriver(SceUID fd, const SceIoStat *buf, unsigned int cbit);

sceIoCloseAsyncForDriver

Version NID
3.60 0x11C57CC6

Derived from sceIoCloseAsync

sceIoDevctlAsyncForDriver

Version NID
3.60 0xA9302946

Derived from _sceIoDevctlAsync

sceIoDevctlForDriver

Version NID
0.990.000-3.740.011 0x16882FC4

cmd list

handler cmd function
sdstor 1 Update ctx info
sdstor 2 Format rm
sdstor 3 Set some intr flag
sdstor 4 remove
sdstor 5 insert
sdstor 6 sceSdErase
sdstor 7 sdctrl_invalidate_partition with check
sdstor 8 sdctrl_invalidate_partition
exfat 0x3001 get_drive_information
exfat 0x3004 set_fake_free
exfat 0x3005 clear_fake_free
exfat 0x3802 set_whiteout_directory
exfat 0x3803 delete_whiteout_entry
exfat 0x80000001 _get_file_size_limit

Derived from _sceIoDevctl.

This performs device-specific operations. The details of the operations are driver-dependent.

It has the same prototype as SceLibKernel#sceIoDevctl.

/*
Arguments:
devname     Specified device ("<devname><unit>:")
cmd     Command code
arg     Pointer to device-driver-dependent parameter block
arglen     Number of bytes in device-driver-dependent parameter block
bufp     Pointer to return data storage block
buflen     Size of return data storage block

Return Values:
Non-negative (N>=0) Success (driver-dependent) 
<0 Error, e.g. SCE_ERROR_ERRNO_EMFILE, SCE_ERROR_ERRNO_ENODEV, SCE_ERROR_ERRNO_EUNSUP
*/

int sceIoDevctlForDriver(
    const char *devname,
    int cmd,
    const void *arg,
    SceSize arglen,
    void *bufp,
    SceSize buflen
);

sceIoDcloseForDriver

Version NID
3.60 0x19C81DD6

Derived from sceIoDclose

int sceIoDcloseForDriver(SceUID fd);

sceIoFlockForDriver

Version NID
3.60 0x16336A0D

Derived from sceIoFlockForSystem

sceIoGetstatByFdAsyncForDriver

Version NID
3.60 0x0FEE1238

Derived from sceIoGetstatByFdAsync

sceIoGetstatByFdForDriver

Version NID
3.60 0x462F059B

Derived from _sceIoGetstatByFd

// Return: 0 on success
int sceIoGetstatByFdForDriver(SceUID fd, SceIoStat *buf);

sceIoGetstatAsyncForDriver

Version NID
3.60 0x94A5304A

Derived from _sceIoGetstatAsync

sceIoIoctlAsyncForDriver

Version NID
3.60 0xB761E91B

Derived from _sceIoIoctlAsync

sceIoIoctlForDriver

Version NID
3.60 0x161CD33F

Derived from _sceIoIoctl

// Return: >=0 on success (driver-dependent)
int sceIoIoctlForDriver(SceUID fd, int cmd, const void *argp, SceSize arglen, void *bufp, SceSize buflen);

sceIoLseekAsyncForDriver

Version NID
3.60 0x541BAABD

Derived from _sceIoLseekAsync

sceIoMkdirAsyncForDriver

Version NID
3.60 0x27003443

Derived from _sceIoMkdirAsync

sceIoOpenAsyncForDriver

Version NID
3.60 0x451001DE

Derived from _sceIoOpenAsync

sceIoPreadAsyncForDriver

Version NID
3.60 0x64A46A2C

Derived from _sceIoPreadAsync

sceIoPreadForDriver

Version NID
3.60 0x2A17515D

Derived from _sceIoPread

// Return: Number of bytes actually read
int sceIoPreadForDriver(SceUID uid, void *data, int size, SceOff offset);

sceIoPwriteAsyncForDriver

Version NID
3.60 0x202CDDE3

Derived from _sceIoPwriteAsync

sceIoPwriteForDriver

Version NID
3.60 0x5F1512C8

Derived from _sceIoPwrite

// Return: Number of bytes actually written
int sceIoPwriteForDriver(SceUID fd, const void *buf, SceSize nbyte, SceOff offset);

sceIoReadAsyncForDriver

Version NID
3.60 0x69047C81

Derived from sceIoReadAsync

sceIoRemoveAsyncForDriver

Version NID
3.60 0xF9D6507D

Derived from _sceIoRemoveAsync

sceIoRenameAsyncForDriver

Version NID
3.60 0xAACBC47A

Derived from _sceIoRenameAsync

sceIoRmdirAsyncForDriver

Version NID
3.60 0xF5B0B36C

Derived from _sceIoRmdirAsync

sceIoRmdirForDriver

Version NID
3.60 0x1CC9C634

Derived from _sceIoRmdir

int sceIoRmdirForDriver(const char *dirname);

sceIoSyncByFdAsyncForDriver

Version NID
3.60 0x041209CF

Derived from sceIoSyncByFdAsync

not_sceIoSyncByFd_maybe_SyncByFd2ForDriver

Version NID
3.60 0x43170575

This function is not sceIoSyncByFdForDriver.

Derived from sceIoSyncByFd

int not_sceIoSyncByFd_maybe_SyncByFd2ForDriver(SceUID fd, int flag);

sceIoSyncAsyncForDriver

Version NID
3.60 0x4F9EA8B0

Derived from _sceIoSyncAsync

sceIoSyncForDriver

Version NID
3.60 0xDDF78594

Derived from _sceIoSync

int sceIoSyncForDriver(const char *device, unsigned int flag);

sceIoWriteAsyncForDriver

Version NID
3.60 0xA1BD13D0

Derived from sceIoWriteAsync

sceIoGetProcessDefaultPriorityForSystemForDriver

Version NID
0.990-3.60 0xCE397158

sceIoSetProcessDefaultPriorityForSystemForDriver

Version NID
0.990-3.60 0xABE65071

sceIoDopenAsyncForDriver

Version NID
3.60 0x72F06BDE

sceIoDcloseAsyncForDriver

Version NID
3.60 0xC08F199F

sceIoDreadAsyncForDriver

Version NID
3.60 0x5982B0E3

sceIoCreateMountEventForDriver

Version NID
3.60 0x2DFA192F

Derived from vshIoCreateMountEvent

int sceIoCreateMountEventForDriver(int vshMountId, int flag);

sceIoCreateErrorEventForDriver

Version NID
3.60 0x3C0343DB

Derived from vshIoCreateErrorEvent

typedef struct sceIoCreateErrorEventForDriverOpt {
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;

  uint32_t unk_10;
  uint32_t unk_14;
  uint32_t unk_18;
} sceIoCreateErrorEventForDriverOpt;

SceUID sceIoCreateErrorEventForDriver(int vshMountId, int flag, sceIoCreateErrorEventForDriverOpt* opt);

sceIoClearErrorEventForDriver

Version NID
3.60 0x40B933C7

Derived from vshIoClearErrorEvent

int sceIoClearErrorEventForDriver(SceUID uid);

sceIoDeleteMountEventForDriver

Version NID
3.60 0x43DB0AE4

Derived from vshIoDeleteMountEvent

int sceIoDeleteMountEventForDriver(SceUID uid);

sceIoDeleteErrorEventForDriver

Version NID
3.60 0xC6158F8D

Derived from vshIoDeleteErrorEvent

int sceIoDeleteErrorEventForDriver(SceUID uid);

sceIoSetMountEventForDriver

Version NID
0.995-3.60 0x39ABDB9E

Temp name was sceIoInvokeMountEventForDriver.

/*
 * (flags & 0x100) != 0 -> mount
 * (flags & 0x200) != 0 -> unmount
 */
int sceIoSetMountEventForDriver(int vshMountId, int flags, int unk2, int unk3);

vfsUnlockMntByMntIdForDriver

Version NID
3.60 0x5B7E5AB8

This is a guessed name.

Temp name was sceIoUmount2ForDriver.

int vfsUnlockMntByMntIdForDriver(int vshMountId);

sceIoSetPathMappingFunctionForDriver

Version NID
3.60 0xCFAECF18

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 mount_point_data_entry item array
  • if item is found then path from mount_point_data_entry item is copied to result_path
  • in any other case OverlayResolveSync result path is copied to result_path
typedef int ( SceIoPathMappingFunc)(const char *path, SceUID pid, char *result_path, SceSize size);

int sceIoSetPathMappingFunctionForDriver(SceIoPathMappingFunc *func);

sceIoGetMediaTypeForDriver

Version NID
0.990-3.60 0x9C220246

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.

int sceIoGetMediaTypeForDriver(SceUID pid, const char *path, int ignored, int *media_type);

sceIoGetThreadDefaultPriorityForSystemForDriver

Version NID
3.60 0x6D0FEDB6
int sceIoGetThreadDefaultPriorityForSystemForDriver(void);

sceIoSetThreadDefaultPriorityForSystemForDriver

Version NID
3.60 0x3F0FF9D5

sceIoGetRemoteKPLSDataForDriver

Version NID
3.60 0x44EDCE57

This is a guessed name.

int sceIoGetRemoteKPLSDataForDriver(SceUID pid, void *dst);

sceIoSetProcessFileOpenMaxNumberForDriver

Version NID
3.60 0xAC0E9AAA
int sceIoSetProcessFileOpenMaxNumberForDriver(SceUID pid, SceSize number);

sceIoSetProcessDirOpenMaxLevelForDriver

Version NID
3.60 0x03F6A684
int sceIoSetProcessDirOpenMaxLevelForDriver(SceUID pid, SceSize level);

sceIoCompleteForDriver

Version NID
3.60 0x8F0DE34D
int sceIoCompleteForDriver(SceUID fd);

sceIoGetPriorityForSystemForDriver

Version NID
3.60 0x9FCDCE62
int sceIoGetPriorityForSystemForDriver(SceUID a1);

sceIoSetPriorityForSystemForDriver

Version NID
3.60 0xCCE94599
int sceIoSetPriorityForSystemForDriver(SceUID a1, int a2);

sceIoSetErrorEventForDriver

Version NID
0.995-3.60 0xDD46CD63

Previously (wrongfully) called sceIoGetGUIDErrorEventListForDriver.

sceIoSetDebuggerCallbackForDriver

Version NID
3.60 0xF4F8C59A

sceIoGetGUIDFdListForDebuggerForDriver

Version NID
3.60 0xdcf75f6d

sceIoGetPUIDFdListForDebuggerForDriver

Version NID
3.60 0xd493274

sceIoGetFileInfoForDriver

Version NID
3.60 0xa1ef2648

This is a guessed name.

SceIofilemgrForDriver_12F8D58E

Version NID
3.60 0x12F8D58E

get some value

SceIofilemgrForDriver_15C17487

Version NID
0.996.090-3.740.011 0x15C17487

A possible name is sceIoSchedulerIssueAnotherIoRequestForDriver.

int SceIofilemgrForDriver_15C17487(int io_device_code);

SceIofilemgrForDriver_2EFDFA12

Version NID
3.60 0x2EFDFA12

set path by flags?

int SceIofilemgrForDriver_2EFDFA12(SceUID fd, char *path);

SceIofilemgrForDriver_3675ECB9

Version NID
3.60 0x3675ECB9

could be sceIoSchedDispatcherFsResourceUnavailableForDriver.

some node op. dec ctr.

SceIofilemgrForDriver_3A79FAC9

Version NID
3.60 0x3A79FAC9

delete fd by flags

int SceIofilemgrForDriver_3A79FAC9(SceUID fd);

SceIofilemgrForDriver_6BEEDDB4

Version NID
3.60 0x6BEEDDB4

setting some to fd of dir entry

int SceIofilemgrForDriver_6BEEDDB4(SceUID fd, int a2);

SceIofilemgrForDriver_B499287E

Version NID
3.60 0xB499287E

delete some puid from a1

int SceIofilemgrForDriver_B499287E(void *a1, int n, int *num);

SceIofilemgrForDriver_C722DF35

Version NID
3.60 0xC722DF35

some node op. inc ctr.

sceIoSyncByFdForDriver

Version NID
3.60 0x338dcd68

SceIofilemgr

_sceIoDcloseAsync

Version NID
1.69 0x00B13031
3.60 different NID or not present

_sceIoOpenAsync

Version NID
1.69-3.60 0x09CD0FC8

sceIoGetProcessDefaultPriority

Version NID
1.69-3.60 0x0DC4F1BB

_sceIoRmdirAsync

Version NID
1.69-3.60 0x13DC3244

sceIoSetPriority

Version NID
1.69-3.60 0x14B2D56C

sceIoSyncByFd

Version NID
1.69-3.60 0x16512F59
int sceIoSyncByFd(SceUID fd, unsigned int unk);

_sceIoIoctl

Version NID
1.69-3.60 0x1D2988F1

_sceIoLseekAsync

Version NID
1.69-3.60 0x2300858E

sceIoSetPriorityForSystem

Version NID
1.69-3.60 0x27373135

_sceIoComplete

Version NID
1.69 0x34E6A06E
3.60 different NID or not present

sceIoWrite

Version NID
1.69-3.60 0x34EFD876
int sceIoWrite(SceUID fd, const void *data, SceSize size);

_sceIoGetThreadDefaultPriorityForSystem

Version NID
1.69 0x36CAF911
3.60 different NID or not present

_sceIoSetThreadDefaultPriorityForSystem

Version NID
0.990-1.69 0x38FE853B
3.60 different NID or not present

sceIoFlockForSystem

Version NID
1.69-3.60 0x3E98E422

_sceIoDevctlAsync

Version NID
1.69-3.60 0x3EE3F66E

sceIoDclose

Version NID
1.69-3.60 0x422A221A
int sceIoDclose(SceUID fd);

_sceIoRename

Version NID
1.69-3.60 0x4912F748
typedef struct sceIoRenameOpt {
  uint32_t unk_0;
  uint32_t unk_4;
  uint32_t unk_8;
  uint32_t unk_C;
} sceIoRenameOpt;

int _sceIoRename(const char *oldname, const char *newname, sceIoRenameOpt *opt);

sceIoLseek32

Version NID
1.69-3.60 0x49252B9B
int sceIoLseek32(SceUID fd, int offset, int whence);

sceIoSetThreadDefaultPriority

Version NID
1.69-3.60 0x49312108

_sceIoDevctl

Version NID
1.000.071-3.740.011 0x515AC017

This performs device-specific operations. The details of the operations are driver-dependent.

This is a wrapper for sceIoDevctlForDriver.

/*
Arguments:
devname     Specified device ("<devname><unit>:")
cmd     Command code
arg     Pointer to device-driver-dependent parameter block
arglen     Number of bytes in device-driver-dependent parameter block
bufp     Pointer to return data storage block
buflen     Size of return data storage block

Return Values:
Non-negative (N>=0) Success (driver-dependent) 
<0 Error, e.g. SCE_ERROR_ERRNO_EMFILE, SCE_ERROR_ERRNO_ENODEV, SCE_ERROR_ERRNO_EUNSUP
*/

typedef struct SceIoDevctlOpt { // size is 0x18
    SceSize arglen; // Number of bytes in device-driver-dependent parameter block
    void *bufp; // Pointer to return data storage block
    SceSize buflen; // Size of return data storage block
    char reserved[0xC];
} SceIoDevctlOpt;

int _sceIoDevctl(
    const char *devname,
    int cmd,
    const void *arg,
    const SceIoDevctlOpt *pOpt
);

sceIoGetstatByFdAsync

Version NID
1.69-3.60 0x5167AC1E

_sceIoPread

Version NID
1.69-3.60 0x539FD5C4
typedef struct sceIoPreadOpt {
   SceOff offset;
   uint32_t unk_8;
   uint32_t unk_C;
} sceIoPreadOpt;

int _sceIoPread(SceUID uid, void *buffer, SceSize size, sceIoPreadOpt *opt);

// 3.60
typedef struct SceIoPreadSyscallArgs {
	void *buf;
	SceSize nbyte;
	SceOff offset;
} SceIoPreadSyscallArgs;

SceSSize _sceIoPread(SceUID fd, SceIoPreadSyscallArgs *args);

_sceIoGetstatByFdAsync

Version NID
1.69 0x554292F0
3.60 different NID or not present

_sceIoChstatByFdAsync

Version NID
1.69 0x58010F40
3.60 different NID or not present

_sceIoGetThreadDefaultPriority

Version NID
1.69 0x5DC29460
3.60 different NID or not present

_sceIoSync

Version NID
1.69-3.60 0x5DD867F7
typedef struct sceIoSyncOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoSyncOpt;

int _sceIoSync(const char* device, unsigned int unk, sceIoSyncOpt* opt);

_sceIoRemoveAsync

Version NID
1.69-3.60 0x5FFA47E2

_sceIoDreadAsync

Version NID
1.69 0x64B233B8
3.60 different NID or not present

_sceIoSetThreadDefaultPriority

Version NID
0.990-1.69 0x654E27B1
3.60 different NID or not present

_sceIoSyncByFdAsync

Version NID
1.69 0x6F78FAFE
3.60 different NID or not present

_sceIoGetPriorityForSystem

Version NID
1.69 0x70B7BB52
3.60 different NID or not present

sceIoReadAsync

Version NID
1.69-3.60 0x773EBD45

_sceIoRemove

Version NID
1.69-3.60 0x78955C65
typedef struct sceIoRemoveOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoRemoveOpt;

int _sceIoRemove(const char *filename, sceIoRemoveOpt* opt);

sceIoSyncByFdAsync

Version NID
1.69-3.60 0x7E1367CB

sceIoSetProcessDefaultPriority

Version NID
1.69-3.60 0x7F2ABBAF

_sceIoRenameAsync

Version NID
1.69-3.60 0x81794921

_sceIoSyncAsync

Version NID
1.69-3.60 0x86DB0C0E

_sceIoDread

Version NID
1.69-3.60 0x8713D662
int _sceIoDread(SceUID fd, SceIoDirent *dir);

_sceIoWrite

Version NID
1.69 0x8C319CF0
3.60 different NID or not present

_sceIoGetstat

Version NID
1.69-3.60 0x8E7E11F2
typedef struct sceIoGetstatOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoGetstatOpt;

int _sceIoGetstat(const char *name, SceIoStat *buf, sceIoGetstatOpt *opt);

sceIoCloseAsync

Version NID
1.69-3.60 0x8EA3616A

_sceIoMkdir

Version NID
1.69-3.60 0x8F1ACC32
 
typedef struct sceIoMkdirOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoMkdirOpt;

int _sceIoMkdir(const char *dirname, SceIoMode mode, sceIoMkdirOpt opt);

_sceIoCompleteMultiple

Version NID
1.69-3.60 0x9111D004

_sceIoLseek32

Version NID
1.69 0x92BDA6DA
3.60 different NID or not present

_sceIoPwrite

Version NID
1.69-3.60 0x9654094B
typedef struct sceIoPwriteOpt {
   SceOff offset;
   uint32_t unk_8;
   uint32_t unk_C;
} sceIoPwriteOpt;

int _sceIoPwrite(SceUID uid, const void *data, int size, sceIoPwriteOpt *opt);

// 3.60
typedef struct SceIoPwriteSyscallArgs {
	const void *buf;
	SceSize nbyte;
	SceOff offset;
} SceIoPwriteSyscallArgs;

SceSSize _sceIoPwrite(SceUID fd, SceIoPwriteSyscallArgs *args);

_sceIoGetPriority

Version NID
1.69 0x9E3F880D
3.60 different NID or not present

sceIoGetThreadDefaultPriority

Version NID
1.69-3.60 0xA176CD03

_sceIoLseek

Version NID
1.69-3.60 0xA604764A
typedef struct _sceIoLseekOpt { // size is 0x10
  SceOff offset;
  int whence;
  uint32_t unk;
} _sceIoLseekOpt;

SceOff _sceIoLseek(SceUID fd, _sceIoLseekOpt* opt);

// 3.60
typedef struct SceIoLseekSyscallArgs {
	SceOff offset;
	int whence;
	int padding;
} SceIoLseekSyscallArgs;

SceOff _sceIoLseek(SceUID fd, SceIoLseekSyscallArgs *args);

sceIoChstatByFdAsync

Version NID
1.69-3.60 0xA9F89275

_sceIoGetProcessDefaultPriority

Version NID
1.69 0xB0486482
3.60 different NID or not present

_sceIoSetPriority

Version NID
0.990-1.69 0xB14192F0
3.60 different NID or not present

_sceIoReadAsync

Version NID
1.69 0xB2B891E6
3.60 different NID or not present

_sceIoPwriteAsync

Version NID
1.69-3.60 0xB2D0B2F4

_sceIoChstatAsync

Version NID
1.69-3.60 0xB4B021D9

sceIoSetThreadDefaultPriorityForSystem

Version NID
1.69-3.60 0xB9C9C9CF

_sceIoPreadAsync

Version NID
1.69-3.60 0xBCF5684D

sceIoDopenAsync

Version NID
1.69-3.60 0xC49C312F

sceIoClose

Version NID
1.69-3.60 0xC70B8886
int sceIoClose(SceUID fd);

_sceIoWriteAsync

Version NID
1.69 0xC92AF88F
3.60 different NID or not present

_sceIoOpen

Version NID
1.69-3.60 0xCC67B6FD
typedef struct sceIoOpenOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoOpenOpt;

SceUID _sceIoOpen(const char *filename, int flag, SceIoMode mode, sceIoOpenOpt *opt);

sceIoCancel

Version NID
1.69-3.60 0xCEF48835

sceIoComplete

Version NID
1.69-3.60 0xD1C49D2F

_sceIoChstat

Version NID
1.69-3.60 0xD2EE455F
typedef struct sceIoChstatOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoChstatOpt;

int _sceIoChstat(const char *name, const SceIoStat *stat, unsigned int cbit, sceIoChstatOpt *opt);

_sceIoSetProcessDefaultPriority

Version NID
0.990-1.69 0xD302DCB9
3.60 different NID or not present

_sceIoGetstatAsync

Version NID
1.69-3.60 0xD414C89F

sceIoDcloseAsync

Version NID
1.69-3.60 0xDC2D7D38

_sceIoIoctlAsync

Version NID
1.69-3.60 0xE00DC256

_sceIoChstatByFd

Version NID
1.69-3.60 0xE0BE2A30
int _sceIoChstatByFd(SceUID fd, const SceIoStat *buf, unsigned int cbit);

sceIoWriteAsync

Version NID
1.69-3.60 0xE0D63D2A

_sceIoGetstatByFd

Version NID
1.69-3.60 0xE6C53567
int _sceIoGetstatByFd(SceUID fd, SceIoStat *stat);

_sceIoSetPriorityForSystem

Version NID
0.990-1.69 0xE6C923B3
3.60 different NID or not present

_sceIoDopen

Version NID
1.69-3.60 0xE6E614B5
typedef struct sceIoDopenOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoDopenOpt;

SceUID _sceIoDopen(const char *dirname, sceIoDopenOpt *opt);

sceIoGetPriorityForSystem

Version NID
1.69-3.60 0xEF5432ED

sceIoGetPriority

Version NID
1.69-3.60 0xF2A472A1

_sceIoRead

Version NID
1.69-3.60 different NID or not present

_sceIoSyncByFd

Version NID
1.69-3.60 different NID or not present

_sceIoCloseAsync

Version NID
1.69-3.60 different NID or not present

_sceIoDopenAsync

Version NID
1.69-3.60 different NID or not present

sceIoDreadAsync

Version NID
1.69-3.60 0xF59F37B0

_sceIoMkdirAsync

Version NID
1.69-3.60 0xF5C58B21

_sceIoCancel

Version NID
1.69 0xF5DEEA19
3.60 different NID or not present

_sceIoClose

Version NID
1.69 0xF69FB394
3.60 different NID or not present

_sceIoDclose

Version NID
0.990-1.69 0xFAFF0002
3.60 different NID or not present

sceIoGetThreadDefaultPriorityForSystem

Version NID
1.69-3.60 0xFCBCEAED

sceIoRead

Version NID
1.69-3.60 0xFDB32293
sceIoRead(SceUID fd, void *data, SceSize size);

_sceIoRmdir

Version NID
1.69-3.60 0xFFFB4D76
typedef struct sceIoRmdirOpt {
  uint32_t unk_0;
  uint32_t unk_4;
} sceIoRmdirOpt;

int _sceIoRmdir(const char *dirname, sceIoRmdirOpt* opt);

Device Drivers