sphinx/qapidoc: Drop code to generate doc for simple union tag
[qemu/kevin.git] / fsdev / qemu-fsdev-throttle.h
blobdaa8ca2494d866debea345ebcae8433fb0dd1317
1 /*
2 * Fsdev Throttle
4 * Copyright (C) 2016 Huawei Technologies Duesseldorf GmbH
6 * Author: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
8 * This work is licensed under the terms of the GNU GPL, version 2 or
9 * (at your option) any later version.
11 * See the COPYING file in the top-level directory for details.
15 #ifndef QEMU_FSDEV_THROTTLE_H
16 #define QEMU_FSDEV_THROTTLE_H
18 #include "block/aio.h"
19 #include "qemu/coroutine.h"
20 #include "qemu/throttle.h"
22 typedef struct FsThrottle {
23 ThrottleState ts;
24 ThrottleTimers tt;
25 ThrottleConfig cfg;
26 CoQueue throttled_reqs[THROTTLE_MAX];
27 } FsThrottle;
29 int fsdev_throttle_parse_opts(QemuOpts *, FsThrottle *, Error **);
31 void fsdev_throttle_init(FsThrottle *);
33 void coroutine_fn fsdev_co_throttle_request(FsThrottle *, ThrottleDirection ,
34 struct iovec *, int);
36 void fsdev_throttle_cleanup(FsThrottle *);
38 #endif /* QEMU_FSDEV_THROTTLE_H */