aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/control_metadata.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-26 18:23:12 -0500
committerLioncash <mathew1800@gmail.com>2018-11-26 21:10:31 -0500
commit931ac0359b099806b1bc0ffd4565748000c6cbc5 (patch)
tree229565ce72652a2cef9fb051d8340c371e810016 /src/core/file_sys/control_metadata.cpp
parentbfcbcc989ec5b211bb891ecec310da540d29a635 (diff)
svc: Implement svcCreateResourceLimit()
This function simply creates a ResourceLimit instance and attempts to create a handle for it within the current process' handle table. If the kernal fails to either create the ResourceLimit instance or create a handle for the ResourceLimit instance, it returns a failure code (OUT_OF_RESOURCE, and HANDLE_TABLE_FULL respectively). Finally, it exits by providing the output parameter with the handle value for the ResourceLimit instance and returning that it was successful. Note: We do not return OUT_OF_RESOURCE because, if yuzu runs out of available memory, then new will currently throw. We *could* allocate the kernel instance with std::nothrow, however this would be inconsistent with how all other kernel objects are currently allocated.
Diffstat (limited to 'src/core/file_sys/control_metadata.cpp')
0 files changed, 0 insertions, 0 deletions