vio_get_iov()
Convert a VIRTIO descriptor request into an iov array
Synopsis:
#include <qvm/vio.h>ssize_t vio_get_iov(const vdev_t *vdp,
vq_t *vq,
unsigned didx,
struct vio_iov *iov)Arguments:
- vdp
- A pointer to a vdev's state structure.
- vq
- A pointer to the virtual queue from which we are taking descriptors.
- didx
- An index to the descriptor.
- iov
- A pointer to the converted request structure.
Returns:
If successful, the number of bytes to transfer; otherwise a negative errno value.
Page updated:
