block_int.h (9c4218e957331e1ba0ba7565730b0b71c49b8d70) block_int.h (67a0fd2a9bca204d2b39f910a97c7137636a0715)
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

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

161 * function pointer may be NULL and .bdrv_co_writev() will be called
162 * instead.
163 */
164 int coroutine_fn (*bdrv_co_write_zeroes)(BlockDriverState *bs,
165 int64_t sector_num, int nb_sectors, BdrvRequestFlags flags);
166 int coroutine_fn (*bdrv_co_discard)(BlockDriverState *bs,
167 int64_t sector_num, int nb_sectors);
168 int64_t coroutine_fn (*bdrv_co_get_block_status)(BlockDriverState *bs,
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

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

161 * function pointer may be NULL and .bdrv_co_writev() will be called
162 * instead.
163 */
164 int coroutine_fn (*bdrv_co_write_zeroes)(BlockDriverState *bs,
165 int64_t sector_num, int nb_sectors, BdrvRequestFlags flags);
166 int coroutine_fn (*bdrv_co_discard)(BlockDriverState *bs,
167 int64_t sector_num, int nb_sectors);
168 int64_t coroutine_fn (*bdrv_co_get_block_status)(BlockDriverState *bs,
169 int64_t sector_num, int nb_sectors, int *pnum);
169 int64_t sector_num, int nb_sectors, int *pnum,
170 BlockDriverState **file);
170
171 /*
172 * Invalidate any cached meta-data.
173 */
174 void (*bdrv_invalidate_cache)(BlockDriverState *bs, Error **errp);
175 int (*bdrv_inactivate)(BlockDriverState *bs);
176
177 /*

--- 537 unchanged lines hidden ---
171
172 /*
173 * Invalidate any cached meta-data.
174 */
175 void (*bdrv_invalidate_cache)(BlockDriverState *bs, Error **errp);
176 int (*bdrv_inactivate)(BlockDriverState *bs);
177
178 /*

--- 537 unchanged lines hidden ---