Loader services: Difference between revisions
No edit summary |
|||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
= ldr:shel = | |||
This is "nn::ldr::detail::IShellInterface". | |||
{| class="wikitable" border="1" | |||
|- | |||
! Cmd || Name | |||
|- | |||
| 0 || [[#SetProgramArgument]] | |||
|- | |||
| 1 || [[#FlushArguments]] | |||
|} | |||
== SetProgramArgument == | |||
Takes a type-0x9 input buffer with launch arguments (as string), an u32 (size of arguments string), and an input title-id. | |||
Loads a process for the specified title-id and passes along the supplied arguments. | |||
Loaded processes are kept in a queue waiting for PM to launch them. The maximum number of waiting processes in this list is 10. | |||
== FlushArguments == | |||
Clears the loaded processes waiting queue. | |||
= ldr:dmnt = | = ldr:dmnt = | ||
This is "nn::ldr::detail::IDebugMonitorInterface". | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || | | 0 || [[#SetProgramArgument]] | ||
|- | |- | ||
| 1 || | | 1 || [[#FlushArguments]] | ||
|- | |- | ||
| 2 || | | 2 || [[#GetProcessModuleInfo]] | ||
|} | |} | ||
== | == GetProcessModuleInfo == | ||
Takes in a u64 Process ID, and a C descriptor out array of [[#ModuleInfo]]s. Returns the number of ModuleInfos copied to output. | |||
= | = ldr:pm = | ||
This is "nn::ldr::detail::IProcessManagerInterface". | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 26: | Line 48: | ||
| 1 || [[#GetProgramInfo]] | | 1 || [[#GetProgramInfo]] | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#PinProgram]] | ||
|- | |- | ||
| 3 || [[# | | 3 || [[#UnpinProgram]] | ||
|} | |} | ||
== GetProgramInfo == | == GetProgramInfo == | ||
Takes | Takes an ncm::ProgramLocation, parses the NPDM, and writes a [[#ProgramInfo]] to a C descriptor buffer. | ||
== PinProgram == | |||
Takes an ncm::ProgramLocation, returns a u64 "PinId". | |||
== UnpinProgram == | |||
Takes a PinId from [[#PinProgram]]. | |||
= ModuleInfo = | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x20 | |||
| ModuleId | |||
|- | |||
| 0x20 | |||
| 0x8 | |||
| ImageAddress | |||
|- | |||
| 0x28 | |||
| 0x8 | |||
| ImageSize | |||
|} | |||
= ProgramInfo = | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 62: | Line 111: | ||
| 0x8 | | 0x8 | ||
| 0x8 | | 0x8 | ||
| | | TitleIdRange_Min | ||
|- | |- | ||
| 0x10 | | 0x10 | ||
Line 95: | Line 144: | ||
| <Varies> | | <Varies> | ||
| ACI0 [[NPDM#FS Access Control|FS Access Control]] | | ACI0 [[NPDM#FS Access Control|FS Access Control]] | ||
|} | |} | ||
[[Category:Services]] | [[Category:Services]] |