Difference between revisions of "FS:OpenFile"
Jump to navigation
Jump to search
(OpenFile returns a handle to the RomFS archive in the all-zero binary-lowpath scenario.) |
m (Add categories) |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
=Request= | =Request= | ||
− | {| | + | {{IPC/Request|Request}} |
− | | | + | {{IPC/RequestHeader|0x0802|7|2}} |
− | + | {{IPC/RequestEntry|Transaction (usually 0)}} | |
− | + | {{IPC/RequestEntryRange|2|u64, Archive Handle}} | |
− | | | + | {{IPC/RequestEntry|[[Filesystem_services#PathType|Path Type]]}} |
− | | | + | {{IPC/RequestEntry|Path Size (including null-terminator)}} |
− | + | {{IPC/RequestEntry|[[Filesystem_services#OpenFlags|Open Flags]]}} | |
− | + | {{IPC/RequestEntry|[[Filesystem_services#Attributes|Attributes]] (usually 0)}} | |
− | + | {{IPC/TranslateStaticBuffer|Path Data Pointer|0}} | |
− | | Transaction (usually 0) | + | {{IPC/RequestEnd}} |
− | |||
− | | 2 | ||
− | | Archive | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | Attributes (usually 0) | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
=Response= | =Response= | ||
− | {| | + | {{IPC/Request|Response}} |
− | | | + | {{IPC/RequestHeader|0x0802|1|2}} |
− | + | {{IPC/RequestEntry|Result code}} | |
− | + | {{IPC/MoveHandle|1}} | |
− | | | + | {{IPC/MoveHandleEntry|File client session handle}} |
− | | | + | {{IPC/RequestEnd}} |
− | | | ||
− | |||
− | | 1 | ||
− | |||
− | |||
− | |||
− | | File handle | ||
− | |||
− | + | [[Category:fs:USER commands]] | |
− | + | [[Category:fs:LDR commands]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 11:54, 20 September 2024
Request[edit]
Request Word | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
0 |
| ||||||||
1 | Transaction (usually 0) | ||||||||
2-3 | u64, Archive Handle | ||||||||
4 | Path Type | ||||||||
5 | Path Size (including null-terminator) | ||||||||
6 | Open Flags | ||||||||
7 | Attributes (usually 0) | ||||||||
8 | Descriptor for static buffer (id 0) | ||||||||
9 | Path Data Pointer |
Response[edit]
Response Word | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
0 |
| ||||||||
1 | Result code | ||||||||
2 | Descriptor for moving 1 handle | ||||||||
3 | File client session handle |