mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
block: Introduce .bdrv_co_ioctl() driver callback
This allows drivers to implement ioctls in a coroutine-based way. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
61b2450414
commit
16a389dc9e
2 changed files with 12 additions and 6 deletions
|
@ -244,6 +244,8 @@ struct BlockDriver {
|
|||
BlockAIOCB *(*bdrv_aio_ioctl)(BlockDriverState *bs,
|
||||
unsigned long int req, void *buf,
|
||||
BlockCompletionFunc *cb, void *opaque);
|
||||
int coroutine_fn (*bdrv_co_ioctl)(BlockDriverState *bs,
|
||||
unsigned long int req, void *buf);
|
||||
|
||||
/* List of options for creating images, terminated by name == NULL */
|
||||
QemuOptsList *create_opts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue