Revision 4265d620 block_int.h
b/block_int.h | ||
---|---|---|
63 | 63 |
void (*bdrv_close)(BlockDriverState *bs); |
64 | 64 |
int (*bdrv_create)(const char *filename, QEMUOptionParameter *options); |
65 | 65 |
int (*bdrv_flush)(BlockDriverState *bs); |
66 |
int (*bdrv_discard)(BlockDriverState *bs, int64_t sector_num, |
|
67 |
int nb_sectors); |
|
66 | 68 |
int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num, |
67 | 69 |
int nb_sectors, int *pnum); |
68 | 70 |
int (*bdrv_set_key)(BlockDriverState *bs, const char *key); |
... | ... | |
76 | 78 |
BlockDriverCompletionFunc *cb, void *opaque); |
77 | 79 |
BlockDriverAIOCB *(*bdrv_aio_flush)(BlockDriverState *bs, |
78 | 80 |
BlockDriverCompletionFunc *cb, void *opaque); |
79 |
int (*bdrv_discard)(BlockDriverState *bs, int64_t sector_num, |
|
80 |
int nb_sectors); |
|
81 |
BlockDriverAIOCB *(*bdrv_aio_discard)(BlockDriverState *bs, |
|
82 |
int64_t sector_num, int nb_sectors, |
|
83 |
BlockDriverCompletionFunc *cb, void *opaque); |
|
81 | 84 |
|
82 | 85 |
int coroutine_fn (*bdrv_co_readv)(BlockDriverState *bs, |
83 | 86 |
int64_t sector_num, int nb_sectors, QEMUIOVector *qiov); |
84 | 87 |
int coroutine_fn (*bdrv_co_writev)(BlockDriverState *bs, |
85 | 88 |
int64_t sector_num, int nb_sectors, QEMUIOVector *qiov); |
86 | 89 |
int coroutine_fn (*bdrv_co_flush)(BlockDriverState *bs); |
90 |
int coroutine_fn (*bdrv_co_discard)(BlockDriverState *bs, |
|
91 |
int64_t sector_num, int nb_sectors); |
|
87 | 92 |
|
88 | 93 |
int (*bdrv_aio_multiwrite)(BlockDriverState *bs, BlockRequest *reqs, |
89 | 94 |
int num_reqs); |
Also available in: Unified diff