mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
virtio/vhost: update virtqueue_get_available_buffer() api
OpenAMP already change virtqueue_get_available_buffer() to virtqueue_get_first_avail_buffer(), so update them Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
3b2c04c6a3
commit
44ca5d0e2b
2 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ static void vhost_rng_work(FAR void *arg)
|
|||
flags = spin_lock_irqsave(&priv->lock);
|
||||
for (; ; )
|
||||
{
|
||||
buf = virtqueue_get_available_buffer(vq, &idx, &len);
|
||||
buf = virtqueue_get_first_avail_buffer(vq, &idx, &len);
|
||||
if (buf == NULL)
|
||||
{
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ virtqueue_get_available_buffer_lock(FAR struct virtqueue *vq,
|
|||
FAR void *ret;
|
||||
|
||||
flags = spin_lock_irqsave(lock);
|
||||
ret = virtqueue_get_available_buffer(vq, avail_idx, len);
|
||||
ret = virtqueue_get_first_avail_buffer(vq, avail_idx, len);
|
||||
spin_unlock_irqrestore(lock, flags);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue