Revision 85e8dab1 block_int.h
b/block_int.h | ||
---|---|---|
53 | 53 |
|
54 | 54 |
typedef struct BdrvTrackedRequest BdrvTrackedRequest; |
55 | 55 |
|
56 |
typedef struct AIOPool { |
|
57 |
void (*cancel)(BlockDriverAIOCB *acb); |
|
58 |
int aiocb_size; |
|
59 |
BlockDriverAIOCB *free_aiocb; |
|
60 |
} AIOPool; |
|
61 |
|
|
62 | 56 |
typedef struct BlockIOLimit { |
63 | 57 |
int64_t bps[3]; |
64 | 58 |
int64_t iops[3]; |
... | ... | |
302 | 296 |
BlockJob *job; |
303 | 297 |
}; |
304 | 298 |
|
305 |
struct BlockDriverAIOCB { |
|
306 |
AIOPool *pool; |
|
307 |
BlockDriverState *bs; |
|
308 |
BlockDriverCompletionFunc *cb; |
|
309 |
void *opaque; |
|
310 |
BlockDriverAIOCB *next; |
|
311 |
}; |
|
312 |
|
|
313 | 299 |
void get_tmp_filename(char *filename, int size); |
314 | 300 |
|
315 |
void *qemu_aio_get(AIOPool *pool, BlockDriverState *bs, |
|
316 |
BlockDriverCompletionFunc *cb, void *opaque); |
|
317 |
void qemu_aio_release(void *p); |
|
318 |
|
|
319 | 301 |
void bdrv_set_io_limits(BlockDriverState *bs, |
320 | 302 |
BlockIOLimit *io_limits); |
321 | 303 |
|
Also available in: Unified diff