nn_fs

Family of src/nx/nn/fs.hook. The hooks_off setting turns a family off by its name.

The native nn::fs (fs.c), for tools/hookgen, in the language of nn/hooks.hook. nn::fs: the file system API of the SDK, run natively on the runtime's own back end, with no fsp-srv session. A mount that the native layer made answers natively. Every other mount name and every handle that the SDK made run the function's own code, so the mount kinds move over one at a time. The functions that take a path or a handle are all here, the ones the game does not import too, because a native mount name or handle must never reach the SDK's own code. A 32-bit game: the ones the 32-bit SDKs read have, each read there, with the same handlers: 41 in 0.12.16; in 4.4.0 those and 11 more (the cache and temporary storages, another application's save, the time stamps, the recursive clean, the access log's mask, the save's size and its extension); in 10.6.0 those and 20 more (MountRom and its cache size for a program, the two IsSaveDataExisting with a bool out, the cache storage by index, its creation, deletion, size and list, IsMounted, the file data cache, the three Commit, the restore flag and the two host mounts with an option). Those with the same symbol are marked a32 (a FileHandle or a DirectoryHandle is one pointer, an addr, as the CacheStorageListHandle is; an ApplicationId by value an even pair of words; Commit's names 4-byte pointers). Those with a size_t (j) or an int64_t (x) in their name have another symbol, and an a32 hook of their own with a usize where the size_t is. Each holds below 11.0.0 (a32 @version): read in 0.12.16, 4.4.0 and 10.6.0, which agree, and between them by inference: switchbrew's fsp-srv shows the commands they send unchanged from 1.0.0 to 10.x (the 64-bit declarations hold in every SDK); past 10.6.0, the newest 32-bit SDK read, a 32-bit game has no hook here

Page 1 2 3 4 5 6 7

nn::fs::MountRom(char const*, void*, unsigned long) source

_ZN2nn2fs8MountRomEPKcPvm
As C: u32 (const char* name, addr cache, u64 cache_size)
Handler: nnfs_mount_rom (fs.c)

nn::fs::MountRom(char const*, void*, unsigned int) SDK < 11.0.0 32-bit source

_ZN2nn2fs8MountRomEPKcPvj
As C: u32 (const char* name, addr cache, usize cache_size)
Handler: nnfs_mount_rom (fs.c)

nn::fs::MountRom(char const*) source

_ZN2nn2fs8MountRomEPKc
As C: u32 (const char* name)
Handler: nnfs_mount_rom_name (fs.c)

nn::fs::QueryMountRomCacheSize(unsigned long*) source

_ZN2nn2fs22QueryMountRomCacheSizeEPm
As C: u32 (u64* size)
Handler: nnfs_query_mount_rom_cache_size (fs.c)

nn::fs::QueryMountRomCacheSize(unsigned int*) SDK < 11.0.0 32-bit source

_ZN2nn2fs22QueryMountRomCacheSizeEPj
As C: u32 (u32* size)
Handler: nnfs_query_mount_rom_cache_size (fs.c)

the two above for the program of the application at an index, from SDK 8 (read in 8.2 and 19.3, where they run the same code as those, with the index given)

nn::fs::MountRom(char const*, int, void*, unsigned long) source

_ZN2nn2fs8MountRomEPKciPvm
As C: u32 (const char* name, i32 program, addr cache, u64 cache_size)
Handler: nnfs_mount_rom_program (fs.c)

nn::fs::MountRom(char const*, int, void*, unsigned int) SDK < 11.0.0 32-bit source

_ZN2nn2fs8MountRomEPKciPvj
As C: u32 (const char* name, i32 program, addr cache, usize cache_size)
Handler: nnfs_mount_rom_program (fs.c)

nn::fs::QueryMountRomCacheSize(unsigned long*, int) source

_ZN2nn2fs22QueryMountRomCacheSizeEPmi
As C: u32 (u64* size, i32 program)
Handler: nnfs_query_mount_rom_cache_size_program (fs.c)

nn::fs::QueryMountRomCacheSize(unsigned int*, int) SDK < 11.0.0 32-bit source

_ZN2nn2fs22QueryMountRomCacheSizeEPji
As C: u32 (u32* size, i32 program)
Handler: nnfs_query_mount_rom_cache_size_program (fs.c)

nn::fs::MountSaveData(char const*, nn::account::Uid const&) SDK < 11.0.0 32-bit source

_ZN2nn2fs13MountSaveDataEPKcRKNS_7account3UidE
As C: u32 (const char* name, addr uid)
Handler: nnfs_mount_save_data (fs.c)

nn::fs::MountDeviceSaveData(char const*) SDK < 11.0.0 32-bit source

_ZN2nn2fs19MountDeviceSaveDataEPKc
As C: u32 (const char* name)
Handler: nnfs_mount_device_save_data (fs.c)

nn::fs::MountSaveDataReadOnly(char const*, nn::ApplicationId, nn::account::Uid const&) SDK < 11.0.0 32-bit source

_ZN2nn2fs21MountSaveDataReadOnlyEPKcNS_13ApplicationIdERKNS_7account3UidE
As C: u32 (const char* name, u64 application, addr uid)
Handler: nnfs_mount_save_data_read_only (fs.c)

nn::fs::MountSaveDataReadOnly(char const*, nn::ncm::ApplicationId, nn::fs::UserId) SDK < 11.0.0 32-bit source

_ZN2nn2fs21MountSaveDataReadOnlyEPKcNS_3ncm13ApplicationIdENS0_6UserIdE
As C: u32 (const char* name, u64 application, u64 uid_lo, u64 uid_hi)
Handler: nnfs_mount_save_data_read_only_user (fs.c)

nn::fs::IsSaveDataExisting(nn::ApplicationId, nn::account::Uid const&) SDK < 11.0.0 32-bit source

_ZN2nn2fs18IsSaveDataExistingENS_13ApplicationIdERKNS_7account3UidE
As C: bool (u64 application, addr uid)
Handler: nnfs_is_save_data_existing (fs.c)

nn::fs::IsSaveDataExisting(nn::account::Uid const&) SDK < 11.0.0 32-bit source

_ZN2nn2fs18IsSaveDataExistingERKNS_7account3UidE
As C: bool (addr uid)
Handler: nnfs_is_own_save_data_existing (fs.c)

nn::fs::IsSaveDataExisting(bool*, nn::ApplicationId, nn::account::Uid const&) SDK < 11.0.0 32-bit source

_ZN2nn2fs18IsSaveDataExistingEPbNS_13ApplicationIdERKNS_7account3UidE
As C: u32 (addr out, u64 application, addr uid)
Handler: nnfs_is_save_data_existing_result (fs.c)

nn::fs::IsSaveDataExisting(bool*, nn::account::Uid const&) SDK < 11.0.0 32-bit source

_ZN2nn2fs18IsSaveDataExistingEPbRKNS_7account3UidE
As C: u32 (addr out, addr uid)
Handler: nnfs_is_own_save_data_existing_result (fs.c)

nn::fs::MountCacheStorage(char const*) SDK < 11.0.0 32-bit source

_ZN2nn2fs17MountCacheStorageEPKc
As C: u32 (const char* name)
Handler: nnfs_mount_cache_storage (fs.c)

nn::fs::MountCacheStorage(char const*, int) SDK < 11.0.0 32-bit source

_ZN2nn2fs17MountCacheStorageEPKci
As C: u32 (const char* name, i32 index)
Handler: nnfs_mount_cache_storage_index (fs.c)

nn::fs::MountTemporaryStorage(char const*) SDK < 11.0.0 32-bit source

_ZN2nn2fs21MountTemporaryStorageEPKc
As C: u32 (const char* name)
Handler: nnfs_mount_temporary_storage (fs.c)

Page 1 2 3 4 5 6 7


Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.