file_wire

The interface snx::ctr::file_wire of file.swipc, a session a service opens (no port of its own). 2 commands; the handlers are in src/3ds/services.

Read (0x802) uses a separately checked CTR mapped output buffer.

GetSize file.swipc

command 0x804: request 0x08040000, response 0x080400c0

Request

WordContents
0header 0x08040000: command 0x804, 0 normal words, 0 translated

Response

WordContents
0header 0x080400c0: command 0x804, 3 normal words, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2size, low word: u64
3size, high word: u64

Handler

uint32_t snx_ctr_file_wire_GetSize(SnxCtrIpc* c, uint64_t* a_size)

file.c, line 18

Close file.swipc

command 0x808: request 0x08080000, response 0x08080040

Request

WordContents
0header 0x08080000: command 0x808, 0 normal words, 0 translated

Response

WordContents
0header 0x08080040: command 0x808, 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_file_wire_Close(SnxCtrIpc* c)

file.c, line 44


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