From 981f4f578e6a0dfb2d02384941ea17f7ea1a14ec Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Wed, 16 Mar 2016 19:54:42 +0100 Subject: block: Add blk_next_root_bs() This function iterates over all BDSs attached to a BB. We are going to need it when rewriting bdrv_next() so it no longer uses bdrv_states. Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- include/sysemu/block-backend.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sysemu/block-backend.h') diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 60c4b070ca..d839bffeb0 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -70,6 +70,7 @@ void blk_remove_all_bs(void); const char *blk_name(BlockBackend *blk); BlockBackend *blk_by_name(const char *name); BlockBackend *blk_next(BlockBackend *blk); +BlockDriverState *blk_next_root_bs(BlockDriverState *bs); bool monitor_add_blk(BlockBackend *blk, const char *name, Error **errp); void monitor_remove_blk(BlockBackend *blk); -- cgit v1.2.3