libctru
v2.4.1
|
PM (Process Manager) application service. More...
Go to the source code of this file.
Enumerations | |
enum | { PMLAUNCHFLAG_NORMAL_APPLICATION = BIT(0) , PMLAUNCHFLAG_LOAD_DEPENDENCIES = BIT(1) , PMLAUNCHFLAG_NOTIFY_TERMINATION = BIT(2) , PMLAUNCHFLAG_QUEUE_DEBUG_APPLICATION = BIT(3) , PMLAUNCHFLAG_TERMINATION_NOTIFICATION_MASK = 0xF0 , PMLAUNCHFLAG_FORCE_USE_O3DS_APP_MEM = BIT(8) , PMLAUNCHFLAG_FORCE_USE_O3DS_MAX_APP_MEM = BIT(9) , PMLAUNCHFLAG_USE_UPDATE_TITLE = BIT(16) } |
Launch flags for PM launch commands. More... | |
Functions | |
Result | pmAppInit (void) |
Initializes pm:app. | |
void | pmAppExit (void) |
Exits pm:app. | |
Handle * | pmAppGetSessionHandle (void) |
Gets the current pm:app session handle. More... | |
Result | PMAPP_LaunchTitle (const FS_ProgramInfo *programInfo, u32 launchFlags) |
Launches a title. More... | |
Result | PMAPP_LaunchTitleUpdate (const FS_ProgramInfo *programInfo, const FS_ProgramInfo *programInfoUpdate, u32 launchFlags) |
Launches a title, applying patches. More... | |
Result | PMAPP_GetTitleExheaderFlags (ExHeader_Arm11CoreInfo *outCoreInfo, ExHeader_SystemInfoFlags *outSiFlags, const FS_ProgramInfo *programInfo) |
Gets a title's ExHeader Arm11CoreInfo and SystemInfo flags. More... | |
Result | PMAPP_SetFIRMLaunchParams (u32 size, const void *in) |
Sets the current FIRM launch parameters. More... | |
Result | PMAPP_GetFIRMLaunchParams (void *out, u32 size) |
Gets the current FIRM launch parameters. More... | |
Result | PMAPP_LaunchFIRMSetParams (u32 firmTidLow, u32 size, const void *in) |
Sets the current FIRM launch parameters. More... | |
Result | PMAPP_PrepareForReboot (s64 timeout) |
Terminate most processes, to prepare for a reboot or a shutdown. More... | |
Result | PMAPP_TerminateCurrentApplication (s64 timeout) |
Terminates the current Application. More... | |
Result | PMAPP_TerminateTitle (u64 titleId, s64 timeout) |
Terminates the processes having the specified titleId. More... | |
Result | PMAPP_TerminateProcess (u32 pid, s64 timeout) |
Terminates the specified process. More... | |
Result | PMAPP_UnregisterProcess (u64 tid) |
Unregisters a process. More... | |
Result | PMAPP_SetAppResourceLimit (s64 cpuTime) |
Sets the APPLICATION cputime reslimit. More... | |
Result | PMAPP_GetAppResourceLimit (s64 *outCpuTime) |
Gets the APPLICATION cputime reslimit. More... | |
PM (Process Manager) application service.
anonymous enum |
Launch flags for PM launch commands.
Gets the APPLICATION cputime reslimit.
[out] | cpuTime | Pointer to write the reslimit value to. |
Gets the current FIRM launch parameters.
size | Size of the FIRM launch parameter buffer. | |
[out] | out | Buffer to write the launch parameters to. |
Result PMAPP_GetTitleExheaderFlags | ( | ExHeader_Arm11CoreInfo * | outCoreInfo, |
ExHeader_SystemInfoFlags * | outSiFlags, | ||
const FS_ProgramInfo * | programInfo | ||
) |
Sets the current FIRM launch parameters.
firmTidLow | Low Title ID of the FIRM title to launch. |
size | Size of the FIRM launch parameter buffer. |
in | Buffer to retrieve the launch parameters from. |
Result PMAPP_LaunchTitle | ( | const FS_ProgramInfo * | programInfo, |
u32 | launchFlags | ||
) |
Launches a title.
programInfo | Program information of the title. |
launchFlags | Flags to launch the title with. |
Result PMAPP_LaunchTitleUpdate | ( | const FS_ProgramInfo * | programInfo, |
const FS_ProgramInfo * | programInfoUpdate, | ||
u32 | launchFlags | ||
) |
Launches a title, applying patches.
programInfo | Program information of the title. |
programInfoUpdate | Program information of the update title. |
launchFlags | Flags to launch the title with. |
Terminate most processes, to prepare for a reboot or a shutdown.
timeout | Time limit in ns for process termination, after which the remaining processes are killed. |
Sets the APPLICATION cputime reslimit.
cpuTime | Reslimit value. |
Sets the current FIRM launch parameters.
size | Size of the FIRM launch parameter buffer. |
in | Buffer to retrieve the launch parameters from. |
Terminates the current Application.
timeout | Timeout in nanoseconds |
Terminates the specified process.
pid | Process-ID of the process to terminate |
timeout | Timeout in nanoseconds |
Terminates the processes having the specified titleId.
titleId | Title ID of the processes to terminate |
timeout | Timeout in nanoseconds |
Unregisters a process.
tid | TitleID of the process to unregister |
Handle* pmAppGetSessionHandle | ( | void | ) |
Gets the current pm:app session handle.