Lines Matching refs:BlockDriverState

70 BlockDriverState *bdrv_new(void);
71 int bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top,
75 bdrv_replace_node(BlockDriverState *from, BlockDriverState *to, Error **errp);
77 int bdrv_replace_child_bs(BdrvChild *child, BlockDriverState *new_bs,
79 BlockDriverState *bdrv_insert_node(BlockDriverState *bs, QDict *node_options,
81 int bdrv_drop_filter(BlockDriverState *bs, Error **errp);
85 BlockDriverState *parent, const BdrvChildClass *child_class,
90 BlockDriverState *parent, const BdrvChildClass *child_class,
95 BlockDriverState *parent, Error **errp);
97 BlockDriverState * no_coroutine_fn
100 BlockDriverState * coroutine_fn no_co_wrapper
103 int bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd,
106 bdrv_set_backing_hd_drained(BlockDriverState *bs, BlockDriverState *backing_hd,
109 int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options,
112 BlockDriverState * no_coroutine_fn
116 BlockDriverState * coroutine_fn no_co_wrapper
120 BlockDriverState *bdrv_new_open_driver_opts(BlockDriver *drv,
124 BlockDriverState *bdrv_new_open_driver(BlockDriver *drv, const char *node_name,
127 BlockDriverState *bs, QDict *options,
131 int bdrv_reopen(BlockDriverState *bs, QDict *opts, bool keep_old_opts,
133 int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only,
135 BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs,
137 void GRAPH_RDLOCK bdrv_refresh_filename(BlockDriverState *bs);
140 bdrv_refresh_limits(BlockDriverState *bs, Transaction *tran, Error **errp);
142 int bdrv_commit(BlockDriverState *bs);
146 int bdrv_drop_intermediate(BlockDriverState *top, BlockDriverState *base,
150 BlockDriverState * GRAPH_RDLOCK
151 bdrv_find_overlay(BlockDriverState *active, BlockDriverState *bs);
153 BlockDriverState * GRAPH_RDLOCK bdrv_find_base(BlockDriverState *bs);
156 bdrv_freeze_backing_chain(BlockDriverState *bs, BlockDriverState *base,
159 bdrv_unfreeze_backing_chain(BlockDriverState *bs, BlockDriverState *base);
166 typedef void BlockDriverAmendStatusCB(BlockDriverState *bs, int64_t offset,
169 bdrv_amend_options(BlockDriverState *bs_new, QemuOpts *opts,
174 BlockDriverState * GRAPH_RDLOCK
175 check_to_replace_node(BlockDriverState *parent_bs, const char *node_name,
179 bdrv_activate(BlockDriverState *bs, Error **errp);
182 bdrv_co_activate(BlockDriverState *bs, Error **errp);
196 int bdrv_has_zero_init_1(BlockDriverState *bs);
197 int coroutine_mixed_fn GRAPH_RDLOCK bdrv_has_zero_init(BlockDriverState *bs);
198 BlockDriverState *bdrv_find_node(const char *node_name);
201 BlockDriverState *bdrv_lookup_bs(const char *device,
205 bdrv_chain_contains(BlockDriverState *top, BlockDriverState *base);
207 BlockDriverState *bdrv_next_node(BlockDriverState *bs);
208 BlockDriverState *bdrv_next_all_states(BlockDriverState *bs);
216 BlockDriverState *bs;
219 BlockDriverState * GRAPH_RDLOCK bdrv_first(BdrvNextIterator *it);
220 BlockDriverState * GRAPH_RDLOCK bdrv_next(BdrvNextIterator *it);
223 BlockDriverState *bdrv_next_monitor_owned(BlockDriverState *bs);
228 bdrv_get_full_backing_filename(BlockDriverState *bs, Error **errp);
230 char * GRAPH_RDLOCK bdrv_dirname(BlockDriverState *bs, Error **errp);
237 void bdrv_ref(BlockDriverState *bs);
238 void no_coroutine_fn bdrv_unref(BlockDriverState *bs);
239 void coroutine_fn no_co_wrapper bdrv_co_unref(BlockDriverState *bs);
240 void GRAPH_WRLOCK bdrv_schedule_unref(BlockDriverState *bs);
243 bdrv_unref_child(BlockDriverState *parent, BdrvChild *child);
246 bdrv_co_unref_child(BlockDriverState *parent, BdrvChild *child);
249 bdrv_attach_child(BlockDriverState *parent_bs,
250 BlockDriverState *child_bs,
257 bdrv_op_is_blocked(BlockDriverState *bs, BlockOpType op, Error **errp);
259 void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason);
260 void bdrv_op_unblock(BlockDriverState *bs, BlockOpType op, Error *reason);
261 void bdrv_op_block_all(BlockDriverState *bs, Error *reason);
262 void bdrv_op_unblock_all(BlockDriverState *bs, Error *reason);
263 bool bdrv_op_blocker_is_empty(BlockDriverState *bs);
265 int bdrv_debug_breakpoint(BlockDriverState *bs, const char *event,
267 int bdrv_debug_remove_breakpoint(BlockDriverState *bs, const char *tag);
268 int bdrv_debug_resume(BlockDriverState *bs, const char *tag);
269 bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag);
274 int bdrv_try_change_aio_context(BlockDriverState *bs, AioContext *ctx,
277 int GRAPH_RDLOCK bdrv_probe_blocksizes(BlockDriverState *bs, BlockSizes *bsz);
278 int bdrv_probe_geometry(BlockDriverState *bs, HDGeometry *geo);
281 bdrv_add_child(BlockDriverState *parent, BlockDriverState *child, Error **errp);
284 bdrv_del_child(BlockDriverState *parent, BdrvChild *child, Error **errp);
299 bool bdrv_register_buf(BlockDriverState *bs, void *host, size_t size,
301 void bdrv_unregister_buf(BlockDriverState *bs, void *host, size_t size);
303 void bdrv_cancel_in_flight(BlockDriverState *bs);