search for: queue_pop

Displaying 2 results from an estimated 2 matches for "queue_pop".

Did you mean: queue_pfn
2012 Mar 18
3
vhost question
...); struct vhost_dev *dev = &node->vdev; mutex_lock(&vq->mutex); vhost_disable_notify(dev, vq); while (!queue_empty(&node->rxq)) { n = vhost_get_vq_desc(dev, vq, vq->iov, ARRAY_SIZE(vq->iov), &out, &in, NULL, NULL); if (0 < n || n == vq->num) break; if ((t = queue_pop(&node->rxq))) { BUG_ON(copy_to_user(vq->iov[0].iov_base, t->buf, t->buf_sz)); vq->iov[0].iov_len = t->buf_sz; // ToDo: copy_to_user the rx_status vhost_add_used(vq, n, out); transmission_free(t); ++frames; } } if (frames) vhost_signal(dev, vq); vhost_enable_notify(dev, vq); mu...
2012 Mar 18
3
vhost question
...); struct vhost_dev *dev = &node->vdev; mutex_lock(&vq->mutex); vhost_disable_notify(dev, vq); while (!queue_empty(&node->rxq)) { n = vhost_get_vq_desc(dev, vq, vq->iov, ARRAY_SIZE(vq->iov), &out, &in, NULL, NULL); if (0 < n || n == vq->num) break; if ((t = queue_pop(&node->rxq))) { BUG_ON(copy_to_user(vq->iov[0].iov_base, t->buf, t->buf_sz)); vq->iov[0].iov_len = t->buf_sz; // ToDo: copy_to_user the rx_status vhost_add_used(vq, n, out); transmission_free(t); ++frames; } } if (frames) vhost_signal(dev, vq); vhost_enable_notify(dev, vq); mu...