Revision 7cd1e32a block.h
b/block.h | ||
---|---|---|
80 | 80 |
/* async block I/O */ |
81 | 81 |
typedef struct BlockDriverAIOCB BlockDriverAIOCB; |
82 | 82 |
typedef void BlockDriverCompletionFunc(void *opaque, int ret); |
83 |
|
|
83 |
typedef void BlockDriverDirtyHandler(BlockDriverState *bs, int64_t sector, |
|
84 |
int sector_num); |
|
84 | 85 |
BlockDriverAIOCB *bdrv_aio_readv(BlockDriverState *bs, int64_t sector_num, |
85 | 86 |
QEMUIOVector *iov, int nb_sectors, |
86 | 87 |
BlockDriverCompletionFunc *cb, void *opaque); |
... | ... | |
187 | 188 |
int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf, |
188 | 189 |
int64_t pos, int size); |
189 | 190 |
|
191 |
void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable); |
|
192 |
int bdrv_get_dirty(BlockDriverState *bs, int64_t sector); |
|
193 |
void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, |
|
194 |
int nr_sectors); |
|
195 |
int bdrv_get_sectors_per_chunk(void); |
|
190 | 196 |
#endif |
Also available in: Unified diff