From 3146cc34a4b86cc9d6c1843ca27c128e67baf23a Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Wed, 20 Jan 2021 14:35:50 -0500 Subject: Merge common: iofilemgr --- include/common/kernel/iofilemgr.h | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'include/common/kernel/iofilemgr.h') diff --git a/include/common/kernel/iofilemgr.h b/include/common/kernel/iofilemgr.h index af06e97..d007959 100644 --- a/include/common/kernel/iofilemgr.h +++ b/include/common/kernel/iofilemgr.h @@ -17,6 +17,46 @@ typedef struct SceIoDevInfo { void *unk; } SceIoDevInfo; +/*--------------------IO Priority--------------------*/ + +/*Valid priority values range: 1 (highest) - 15 (lowest). Default priority value is 14*/ + +/** + * Set IO operations priority for file descriptor for non-game application + * + * @param fd - File UID + * @param priority - IO operations priority + * + * @return < 0 on error. + */ +int sceIoSetPriorityForSystem(SceUID fd, int priority); + +/** + * Get IO operations priority for file descriptor for non-game application + * + * @param fd - File UID + * + * @return A non-negative integer is a valid priority, anything else an error + */ +int sceIoGetPriorityForSystem(SceUID fd); + +/** + * Set IO operations priority for caller thread for non-game + * application (will be default for all new IO operations) + * + * @param priority - New default IO operations priority + * + * @return < 0 on error. + */ +int sceIoSetThreadDefaultPriorityForSystem(int priority); + +/** + * Get IO operations priority for thread for non-game application + * + * @return A non-negative integer is a valid priority, anything else an error + */ +int sceIoGetThreadDefaultPriorityForSystem(void); + #ifdef __cplusplus } #endif -- cgit v1.2.3