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:
Bowen Wang
2025-12-30 17:18:35 +08:00
committed by Xiang Xiao
parent 3b2c04c6a3
commit 44ca5d0e2b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;