Lines Matching defs:BlockDriverState

54     int (*bdrv_open)(BlockDriverState *bs, int flags);
55 int (*bdrv_file_open)(BlockDriverState *bs, const char *filename, int flags);
56 int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num,
58 int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
60 void (*bdrv_close)(BlockDriverState *bs);
62 void (*bdrv_flush)(BlockDriverState *bs);
63 int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
65 int (*bdrv_set_key)(BlockDriverState *bs, const char *key);
66 int (*bdrv_make_empty)(BlockDriverState *bs);
68 BlockDriverAIOCB *(*bdrv_aio_readv)(BlockDriverState *bs,
71 BlockDriverAIOCB *(*bdrv_aio_writev)(BlockDriverState *bs,
74 BlockDriverAIOCB *(*bdrv_aio_flush)(BlockDriverState *bs,
77 int (*bdrv_aio_multiwrite)(BlockDriverState *bs, BlockRequest *reqs,
79 int (*bdrv_merge_requests)(BlockDriverState *bs, BlockRequest* a,
84 int (*bdrv_truncate)(BlockDriverState *bs, int64_t offset);
85 int64_t (*bdrv_getlength)(BlockDriverState *bs);
86 int (*bdrv_write_compressed)(BlockDriverState *bs, int64_t sector_num,
89 int (*bdrv_snapshot_create)(BlockDriverState *bs,
91 int (*bdrv_snapshot_goto)(BlockDriverState *bs,
93 int (*bdrv_snapshot_delete)(BlockDriverState *bs, const char *snapshot_id);
94 int (*bdrv_snapshot_list)(BlockDriverState *bs,
96 int (*bdrv_get_info)(BlockDriverState *bs, BlockDriverInfo *bdi);
98 int (*bdrv_save_vmstate)(BlockDriverState *bs, const uint8_t *buf,
100 int (*bdrv_load_vmstate)(BlockDriverState *bs, uint8_t *buf,
103 int (*bdrv_change_backing_file)(BlockDriverState *bs,
107 int (*bdrv_is_inserted)(BlockDriverState *bs);
108 int (*bdrv_media_changed)(BlockDriverState *bs);
109 int (*bdrv_eject)(BlockDriverState *bs, int eject_flag);
110 int (*bdrv_set_locked)(BlockDriverState *bs, int locked);
113 int (*bdrv_ioctl)(BlockDriverState *bs, unsigned long int req, void *buf);
114 BlockDriverAIOCB *(*bdrv_aio_ioctl)(BlockDriverState *bs,
126 int (*bdrv_check)(BlockDriverState* bs, BdrvCheckResult *result);
128 void (*bdrv_debug_event)(BlockDriverState *bs, BlkDebugEvent event);
134 int (*bdrv_has_zero_init)(BlockDriverState *bs);
139 struct BlockDriverState {
168 BlockDriverState *backing_hd;
169 BlockDriverState *file;
199 QTAILQ_ENTRY(BlockDriverState) list;
205 BlockDriverState *bs;
213 void *qemu_aio_get(AIOPool *pool, BlockDriverState *bs,
217 void *qemu_blockalign(BlockDriverState *bs, size_t size);
224 BlockDriverState *bs;