block_int.h (58e2e17dba49b43f4ac9de19468aeae1c787dcc2) block_int.h (2b148f392b2bfeba76d3e6d9607c3bd072350e8c)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 210 unchanged lines hidden (view full) ---

219 */
220 int coroutine_fn (*bdrv_co_block_status)(BlockDriverState *bs,
221 bool want_zero, int64_t offset, int64_t bytes, int64_t *pnum,
222 int64_t *map, BlockDriverState **file);
223
224 /*
225 * Invalidate any cached meta-data.
226 */
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 210 unchanged lines hidden (view full) ---

219 */
220 int coroutine_fn (*bdrv_co_block_status)(BlockDriverState *bs,
221 bool want_zero, int64_t offset, int64_t bytes, int64_t *pnum,
222 int64_t *map, BlockDriverState **file);
223
224 /*
225 * Invalidate any cached meta-data.
226 */
227 void (*bdrv_invalidate_cache)(BlockDriverState *bs, Error **errp);
227 void coroutine_fn (*bdrv_co_invalidate_cache)(BlockDriverState *bs,
228 Error **errp);
228 int (*bdrv_inactivate)(BlockDriverState *bs);
229
230 /*
231 * Flushes all data for all layers by calling bdrv_co_flush for underlying
232 * layers, if needed. This function is needed for deterministic
233 * synchronization of the flush finishing callback.
234 */
235 int coroutine_fn (*bdrv_co_flush)(BlockDriverState *bs);

--- 845 unchanged lines hidden ---
229 int (*bdrv_inactivate)(BlockDriverState *bs);
230
231 /*
232 * Flushes all data for all layers by calling bdrv_co_flush for underlying
233 * layers, if needed. This function is needed for deterministic
234 * synchronization of the flush finishing callback.
235 */
236 int coroutine_fn (*bdrv_co_flush)(BlockDriverState *bs);

--- 845 unchanged lines hidden ---