]> Git Repo - qemu.git/commit
iov: Add iov_to_buf and iov_size helpers
authorAmit Shah <[email protected]>
Tue, 27 Apr 2010 12:34:06 +0000 (18:04 +0530)
committerAnthony Liguori <[email protected]>
Wed, 28 Apr 2010 13:58:22 +0000 (08:58 -0500)
commitfa6111f215736e44f0ac4fc50947e6c407588c28
tree28a1e359c6292845b02521cf94e7b99e196a9d24
parente4d5639dbb6181ebbfdb554f2594721b2d63882b
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/iov.c
hw/iov.h
hw/virtio-balloon.c
This page took 0.026436 seconds and 4 git commands to generate.