ScarletNX / 3DS IPC
fs:USER
The interface snx::ctr::fs_wire of fs.swipc, the service fs:USER. 3 commands; the handlers are in src/3ds/services.
command 0x801: request 0x08010002, response 0x08010040
Request
| Word | Contents |
|---|
| 0 | header 0x08010002: command 0x801, 0 normal words, 2 translated |
| 1 | 0x20: the calling process's ID follows |
| 2 | process: the caller's process ID, which the kernel writes over the client's word |
Response
| Word | Contents |
|---|
| 0 | header 0x08010040: command 0x801, 1 normal word, 0 translated |
| 1 | the 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
| Word | Contents |
|---|
| 0 | header 0x08610042: command 0x861, 1 normal word, 2 translated |
| 1 | version: u32 |
| 2 | 0x20: the calling process's ID follows |
| 3 | process: the caller's process ID, which the kernel writes over the client's word |
Response
| Word | Contents |
|---|
| 0 | header 0x08610040: command 0x861, 1 normal word, 0 translated |
| 1 | the 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
command 0x80e: request 0x080e0080, response 0x080e0040
Request
| Word | Contents |
|---|
| 0 | header 0x080e0080: command 0x80e, 2 normal words, 0 translated |
| 1 | archive, low word: u64 |
| 2 | archive, high word: u64 |
Response
| Word | Contents |
|---|
| 0 | header 0x080e0040: command 0x80e, 1 normal word, 0 translated |
| 1 | the 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