block-io.h (880953493386a69416d2e1cdc063c670585a03ac) block-io.h (9a5a1c621ed72161abcf461d46c7b7b7f97938bf)
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

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

98
99/* sg packet commands */
100int coroutine_fn GRAPH_RDLOCK
101bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
102
103/* Ensure contents are flushed to disk. */
104int coroutine_fn GRAPH_RDLOCK bdrv_co_flush(BlockDriverState *bs);
105
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

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

98
99/* sg packet commands */
100int coroutine_fn GRAPH_RDLOCK
101bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
102
103/* Ensure contents are flushed to disk. */
104int coroutine_fn GRAPH_RDLOCK bdrv_co_flush(BlockDriverState *bs);
105
106int coroutine_fn bdrv_co_pdiscard(BdrvChild *child, int64_t offset,
107 int64_t bytes);
106int coroutine_fn GRAPH_RDLOCK bdrv_co_pdiscard(BdrvChild *child, int64_t offset,
107 int64_t bytes);
108
108bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs);
109int bdrv_block_status(BlockDriverState *bs, int64_t offset,
110 int64_t bytes, int64_t *pnum, int64_t *map,
111 BlockDriverState **file);
112
113int coroutine_fn GRAPH_RDLOCK
114bdrv_co_block_status_above(BlockDriverState *bs, BlockDriverState *base,
115 int64_t offset, int64_t bytes, int64_t *pnum,

--- 276 unchanged lines hidden ---
109bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs);
110int bdrv_block_status(BlockDriverState *bs, int64_t offset,
111 int64_t bytes, int64_t *pnum, int64_t *map,
112 BlockDriverState **file);
113
114int coroutine_fn GRAPH_RDLOCK
115bdrv_co_block_status_above(BlockDriverState *bs, BlockDriverState *base,
116 int64_t offset, int64_t bytes, int64_t *pnum,

--- 276 unchanged lines hidden ---