diff options
| author | 2019-06-09 20:43:03 -0400 | |
|---|---|---|
| committer | 2019-06-09 20:43:03 -0400 | |
| commit | 4486103e1dd50aa435ce2f392241ea50f60a359f (patch) | |
| tree | 59b7c0e6fa849694b5e4c34f573310589e342496 /src/core/hle/kernel/process.h | |
| parent | Merge pull request #2564 from ReinUsesLisp/block-dim-x-fix (diff) | |
| parent | kernel/svc: Implement TotalMemoryUsedWithoutMmHeap/TotalMemoryAvailableWithou... (diff) | |
| download | yuzu-4486103e1dd50aa435ce2f392241ea50f60a359f.tar.gz yuzu-4486103e1dd50aa435ce2f392241ea50f60a359f.tar.xz yuzu-4486103e1dd50aa435ce2f392241ea50f60a359f.zip | |
Merge pull request #2570 from lioncash/svc
kernel/svc: Handle TotalPhysicalMemoryAvailableWithoutMmHeap and TotalPhysicalMemoryUsedWithoutMmHeap
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index f027fafa3..9c20eb7f8 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -186,9 +186,20 @@ public: | |||
| 186 | return random_entropy.at(index); | 186 | return random_entropy.at(index); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | /// Retrieves the total physical memory available to this process in bytes. | ||
| 190 | u64 GetTotalPhysicalMemoryAvailable() const; | ||
| 191 | |||
| 192 | /// Retrieves the total physical memory available to this process in bytes, | ||
| 193 | /// without the size of the personal heap added to it. | ||
| 194 | u64 GetTotalPhysicalMemoryAvailableWithoutMmHeap() const; | ||
| 195 | |||
| 189 | /// Retrieves the total physical memory used by this process in bytes. | 196 | /// Retrieves the total physical memory used by this process in bytes. |
| 190 | u64 GetTotalPhysicalMemoryUsed() const; | 197 | u64 GetTotalPhysicalMemoryUsed() const; |
| 191 | 198 | ||
| 199 | /// Retrieves the total physical memory used by this process in bytes, | ||
| 200 | /// without the size of the personal heap added to it. | ||
| 201 | u64 GetTotalPhysicalMemoryUsedWithoutMmHeap() const; | ||
| 202 | |||
| 192 | /// Gets the list of all threads created with this process as their owner. | 203 | /// Gets the list of all threads created with this process as their owner. |
| 193 | const std::list<const Thread*>& GetThreadList() const { | 204 | const std::list<const Thread*>& GetThreadList() const { |
| 194 | return thread_list; | 205 | return thread_list; |