vio_append_iov()
Extend an iov array to cover an additional VIRTIO descriptor
Synopsis:
#include <qvm/vio.h>ssize_t vio_append_iov(const vdev_t *vdp,
vq_t *vq,
unsigned didx,
struct vio_iov *iov,
size_t cap)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 structure being extended.
- cap
- The maximum length of the mapped data.
Returns:
If successful, the length of the new descriptor; otherwise, a negative errno value.
Page updated:
