commit | fa6111f215736e44f0ac4fc50947e6c407588c28 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Tue Apr 27 18:04:06 2010 +0530 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Wed Apr 28 08:58:22 2010 -0500 |
tree | 28a1e359c6292845b02521cf94e7b99e196a9d24 | |
parent | e4d5639dbb6181ebbfdb554f2594721b2d63882b [diff] |
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>