3DS IPC

The 3DS services' commands that ScarletNX's schemas declare (src/3ds/services/*.swipc), each laid out word by word as the dispatcher swipc --ctr makes of the schema reads the request and writes the response, with the handler that answers it. 7 interfaces, 31 commands.

The search takes a command's name (the nearest when none is the same) or a header word in hex (0x00050100): its bits 31:16 are the command.

The words

A command is up to 64 words at the thread's TLS + 0x80. Its header is the command in bits 31:16, then the count of normal words (bits 11:6) and of translated words (bits 5:0); the normal words follow in the schema's order (u32 a word, u64 two, its low word first, bytes<N> N / 4), then the translated: descriptors, each followed by what it describes. A request's pid is descriptor 0x20 and the word the kernel writes the caller's process ID over; a response's handles of one kind in a row share a descriptor, 0x0 copied, 0x10 moved, with the count less one in bits 31:26. A response's first normal word is the result.

Services

ServiceInterfaceCommandsSchema
APT:Ssnx::ctr::apt_wire10apt.swipc
file_wiresnx::ctr::file_wire2file.swipc
fs:USERsnx::ctr::fs_wire3fs.swipc
hid:USERsnx::ctr::hid8hid.swipc
ir:rstsnx::ctr::irrst3irrst.swipc
ptm:sysmsnx::ctr::ptm2ptm.swipc
srv:snx::ctr::srv3srv.swipc

The services' other commands are answered by their C (each service's own dispatch), before its schema's dispatcher, and are not here.

The ARM ISA, the Maxwell ISA, the Ampere ISA, the PICA200 ISA, the USSE ISA, the NVN API, the nn API, the Android API and the Driver bugs.


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