diff options
author | Reiko Asakura | 2021-01-20 14:35:50 -0500 |
---|---|---|
committer | Reiko Asakura | 2021-01-20 14:35:50 -0500 |
commit | 3146cc34a4b86cc9d6c1843ca27c128e67baf23a (patch) | |
tree | 73afa97644dcbd29c1af5414ddafde782f39949c /include/common/kernel/iofilemgr.h | |
parent | Remove dupe: iofilemgr (diff) | |
download | vds-libraries-3146cc34a4b86cc9d6c1843ca27c128e67baf23a.tar.gz |
Merge common: iofilemgr
Diffstat (limited to 'include/common/kernel/iofilemgr.h')
-rw-r--r-- | include/common/kernel/iofilemgr.h | 40 |
1 files changed, 40 insertions, 0 deletions
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 |