summaryrefslogtreecommitdiff
path: root/include/user/kernel/iofilemgr_async.h
blob: c2a84469430533c6a872502efedaddeb46c39f8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_USER_KERNEL_IOFILEMGR_ASYNC_H
#define _VDSUITE_USER_KERNEL_IOFILEMGR_ASYNC_H

#include_next <kernel/iofilemgr_async.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * Async IO operations are scheduled automatically, similar to FIOS2.
 * You can make calls to sceIoOpenAsync(), sceIoReadAsync(),
 * sceIoCloseAsync() right after each other, they will be put in a schedule
 * and performed automatically.
 *
 * All async IO functions return UID of operation handle, not file descriptor UID.
 */

/**
  * Complete multiple asynchronous operations.
  *
  * @param asyncParam - Array of ::SceIoAsyncParam representing IO operations to complete. retVal member must have opHandle value assigned to it.
  * @param numOfParam - Number of ::SceIoAsyncParam structs in asyncParam array
  * @param numOfCompleted - Number of operations that has been completed successfully
  *
  * @return < 0 on last encountered error.
  */
int sceIoCompleteMultiple(SceIoAsyncParam* asyncParam, int numOfParam, int* numOfCompleted);

#ifdef __cplusplus
}
#endif

#endif	/* _VDSUITE_USER_KERNEL_IOFILEMGR_ASYNC_H */