Difference between revisions of "PMApp:SetAppResourceLimit"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000a0140] |- | 1 | ? (usually 0) |- | 2 | Resource limit type. |- | 3 | Resource...")
 
(Does not accept other parameters.)
Line 6: Line 6:
 
|-
 
|-
 
| 0
 
| 0
| Header code [0x000a0140]
+
| Header code [0x000A0140]
 
|-
 
|-
 
| 1
 
| 1
| ? (usually 0)
+
| 0
 
|-
 
|-
 
| 2
 
| 2
| Resource limit type.
+
| Resource limit type (9)
 
|-
 
|-
 
| 3
 
| 3
 
| Resource limit value.
 
| Resource limit value.
 
|-
 
|-
| 4
+
| 4-5
| ? (usually 0)
+
| u64, 0
|-
 
| 5
 
| ? (usually 0)
 
 
|}
 
|}
  
Line 38: Line 35:
  
 
=Description=
 
=Description=
 
+
Interface for [[SVC|svcSetResourceLimitLimitValues]]. Resource limit type must be set to 9, meaning "Max CPU time" (see [[KResourceLimit]]). If the parameters are not set exactly as listed, the command will return the not-implemented result code 0xD8E05BF4.
Interface for [[SVC|svcSetResourceLimitLimitValues]]. Sets a single resource limit at a time. Resource limit types are in the 0-9 range and can be found at [[KResourceLimit]] : 0 is "Max Priority" and 9 is "Max CPU time".
 

Revision as of 02:42, 13 October 2015

Request

Index Word Description
0 Header code [0x000A0140]
1 0
2 Resource limit type (9)
3 Resource limit value.
4-5 u64, 0

Response

Index Word Description
0 Header code
1 Result code

Description

Interface for svcSetResourceLimitLimitValues. Resource limit type must be set to 9, meaning "Max CPU time" (see KResourceLimit). If the parameters are not set exactly as listed, the command will return the not-implemented result code 0xD8E05BF4.