Line 1,407: |
Line 1,407: |
| | 0 | | | 0 |
| | | | | |
− | | Returns the amount of executable memory allocated to the process + thread context size + page-rounded size of the external handle table | + | | Returns the amount of private (code, data, regular heap) and shared memory used by the process + total supervisor-mode stack size + page-rounded size of the external handle table. This is the amount of physical memory the process is using, minus TLS, main thread stack and linear memory. |
| |- | | |- |
| | 1 | | | 1 |
| | | | | |
− | | Returns the amount of <unknown> memory allocated to the process + thread context size + page-rounded size of the external handle table | + | | Returns the amount of <related unused field> + total supervisor-mode stack size + page-rounded size of the external handle table |
| |- | | |- |
| | 2 | | | 2 |
| | | | | |
− | | Returns the amount of DMA-able (code, data, IO pages, etc.) memory allocated to the process + thread context size + page-rounded size of the external handle table | + | | Returns the amount of private (code, data, heap) memory used by the process + total supervisor-mode stack size + page-rounded size of the external handle table |
| |- | | |- |
| | 3 | | | 3 |
| | | | | |
− | | Returns the amount of <unknown> memory allocated to the process + thread context size + page-rounded size of the external handle table | + | | Returns the amount of <related unused field> + total supervisor-mode stack size + page-rounded size of the external handle table |
| |- | | |- |
| | 4 | | | 4 |
| | | | | |
− | | Returns the amount handles in use by the process. | + | | Returns the amount of handles in use by the process. |
| |- | | |- |
| | 5 | | | 5 |
Line 1,447: |
Line 1,447: |
| | 19 | | | 19 |
| | Stub: [[8.0.0-18]]. Implementation: [[11.3.0-36|11.3.0-X]]. | | | Stub: [[8.0.0-18]]. Implementation: [[11.3.0-36|11.3.0-X]]. |
− | | Originally this only returned 0xD8E007ED. Now with v11.3 this returns the memregion for the process: out low u32 = [[KProcess]] "Kernel flags from the exheader kernel descriptors" & 0xF00. High out u32 = 0. | + | | Originally this only returned 0xD8E007ED. Now with v11.3 this returns the memregion for the process: out low u32 = [[KProcess]] "Kernel flags from the exheader kernel descriptors" & 0xF00 (memory region flag). High out u32 = 0. |
| |- | | |- |
| | 20 | | | 20 |
Line 1,455: |
Line 1,455: |
| | 21 | | | 21 |
| | [[8.0.0-18]]. N3DS only. | | | [[8.0.0-18]]. N3DS only. |
− | | Returns the maximum amount of VRAM memory allocatable by the process: 0x800000 bytes if the process has already allocated VRAM memory, otherwise 0 (+ error 0xE0E01BF4) | + | | Returns the VA -> PA conversion offset for the QTM static mem block reserved in the exheader (0x800000), otherwise 0 (+ error 0xE0E01BF4) if it doesn't exist |
| |- | | |- |
| | 22 | | | 22 |
| | [[8.0.0-18]]. N3DS only. | | | [[8.0.0-18]]. N3DS only. |
− | | Returns the address of the first chunk of VRAM allocated by this process | + | | Returns the base VA of the QTM static mem block reserved in the exheader, otherwise 0 (+ error 0xE0E01BF4) if it doesn't exist |
| |- | | |- |
| | 23 | | | 23 |
| | [[8.0.0-18]]. N3DS only. | | | [[8.0.0-18]]. N3DS only. |
− | | Returns the amount of VRAM allocated by this process (?) | + | | Returns the size of the QTM static mem block reserved in the exheader, otherwise 0 (+ error 0xE0E01BF4) if it doesn't exist |
| |} | | |} |
| | | |