fs:USER

The interface snx::ctr::fs_wire of fs.swipc, the service fs:USER. 3 commands; the handlers are in src/3ds/services.

Initialize fs.swipc

command 0x801: request 0x08010002, response 0x08010040

Request

WordContents
0header 0x08010002: command 0x801, 0 normal words, 2 translated
10x20: the calling process's ID follows
2process: the caller's process ID, which the kernel writes over the client's word

Response

WordContents
0header 0x08010040: command 0x801, 1 normal word, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone

Handler

uint32_t snx_ctr_fs_wire_Initialize(SnxCtrIpc* c, uint32_t a_process)

fs.c, line 42

InitializeWithSdkVersion fs.swipc

command 0x861: request 0x08610042, response 0x08610040

Request

WordContents
0header 0x08610042: command 0x861, 1 normal word, 2 translated
1version: u32
20x20: the calling process's ID follows
3process: the caller's process ID, which the kernel writes over the client's word

Response

WordContents
0header 0x08610040: command 0x861, 1 normal word, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone

Handler

uint32_t snx_ctr_fs_wire_InitializeWithSdkVersion(SnxCtrIpc* c, uint32_t a_version, uint32_t a_process)

fs.c, line 35

CloseArchive fs.swipc

command 0x80e: request 0x080e0080, response 0x080e0040

Request

WordContents
0header 0x080e0080: command 0x80e, 2 normal words, 0 translated
1archive, low word: u64
2archive, high word: u64

Response

WordContents
0header 0x080e0040: command 0x80e, 1 normal word, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone

Handler

uint32_t snx_ctr_fs_wire_CloseArchive(SnxCtrIpc* c, uint64_t a_archive)

fs.c, line 63


Made from ScarletNX's Sail at 166ad3910f80. The schemas and the handlers are ScarletNX's (GPL-3.0-or-later).