diff options
author | Jason Wang <jasowang@redhat.com> | 2016-03-04 12:24:52 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-03-11 01:18:50 +0100 |
commit | d4a60603fa0b42012decfa058dfa44cffde7a10c (patch) | |
tree | e67544642fc442b1c3823a4cef4a744cc8e81bf1 /sound/core/rawmidi.c | |
parent | vhost: introduce vhost_has_work() (diff) | |
download | linux-d4a60603fa0b42012decfa058dfa44cffde7a10c.tar.xz linux-d4a60603fa0b42012decfa058dfa44cffde7a10c.zip |
vhost: introduce vhost_vq_avail_empty()
This patch introduces a helper which will return true if we're sure
that the available ring is empty for a specific vq. When we're not
sure, e.g vq access failure, return false instead. This could be used
for busy polling code to exit the busy loop.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'sound/core/rawmidi.c')
0 files changed, 0 insertions, 0 deletions