Lines Matching refs:BlockDriverState
53 int (*bdrv_open)(BlockDriverState *bs, const char *filename, int flags);
54 int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num,
56 int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
58 void (*bdrv_close)(BlockDriverState *bs);
60 void (*bdrv_flush)(BlockDriverState *bs);
61 int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
63 int (*bdrv_set_key)(BlockDriverState *bs, const char *key);
64 int (*bdrv_make_empty)(BlockDriverState *bs);
66 BlockDriverAIOCB *(*bdrv_aio_readv)(BlockDriverState *bs,
69 BlockDriverAIOCB *(*bdrv_aio_writev)(BlockDriverState *bs,
74 int (*bdrv_truncate)(BlockDriverState *bs, int64_t offset);
75 int64_t (*bdrv_getlength)(BlockDriverState *bs);
76 int (*bdrv_write_compressed)(BlockDriverState *bs, int64_t sector_num,
79 int (*bdrv_snapshot_create)(BlockDriverState *bs,
81 int (*bdrv_snapshot_goto)(BlockDriverState *bs,
83 int (*bdrv_snapshot_delete)(BlockDriverState *bs, const char *snapshot_id);
84 int (*bdrv_snapshot_list)(BlockDriverState *bs,
86 int (*bdrv_get_info)(BlockDriverState *bs, BlockDriverInfo *bdi);
88 int (*bdrv_put_buffer)(BlockDriverState *bs, const uint8_t *buf,
90 int (*bdrv_get_buffer)(BlockDriverState *bs, uint8_t *buf,
94 int (*bdrv_is_inserted)(BlockDriverState *bs);
95 int (*bdrv_media_changed)(BlockDriverState *bs);
96 int (*bdrv_eject)(BlockDriverState *bs, int eject_flag);
97 int (*bdrv_set_locked)(BlockDriverState *bs, int locked);
100 int (*bdrv_ioctl)(BlockDriverState *bs, unsigned long int req, void *buf);
101 BlockDriverAIOCB *(*bdrv_aio_ioctl)(BlockDriverState *bs,
110 int (*bdrv_check)(BlockDriverState* bs);
115 struct BlockDriverState { struct
138 BlockDriverState *backing_hd; argument
160 BlockDriverState *next; argument
166 BlockDriverState *bs; argument
174 void *qemu_aio_get(AIOPool *pool, BlockDriverState *bs,
178 void *qemu_blockalign(BlockDriverState *bs, size_t size);
180 extern BlockDriverState *bdrv_first;