diff options
| author | Amit Shah <amit.shah@redhat.com> | 2010-04-27 18:04:06 +0530 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-04-28 08:58:22 -0500 |
| commit | fa6111f215736e44f0ac4fc50947e6c407588c28 (patch) | |
| tree | 28a1e359c6292845b02521cf94e7b99e196a9d24 /hw/virtio-serial-bus.c | |
| parent | e4d5639dbb6181ebbfdb554f2594721b2d63882b (diff) | |
| download | focaccia-qemu-fa6111f215736e44f0ac4fc50947e6c407588c28.tar.gz focaccia-qemu-fa6111f215736e44f0ac4fc50947e6c407588c28.zip | |
iov: Add iov_to_buf and iov_size helpers
iov_to_buf() puts the buffer contents in the iov in a linearized buffer. iov_size() gets the length of the contents in the iov. The iov_to_buf() function is the memcpy_to_iovec() function that was used in virtio-ballon.c. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-serial-bus.c')
0 files changed, 0 insertions, 0 deletions