Statistics
| Branch: | Revision:

root / hw / iov.c @ c494dd6f

History | View | Annotate | Download (1.6 kB)

# Date Author Comment
e4d5639d 04/28/2010 04:58 pm Amit Shah

iov: Introduce a new file for helpers around iovs, add iov_from_buf()

The virtio-net code uses iov_fill() which fills an iov from a linear
buffer. The virtio-serial-bus code does something similar in an
open-coded function.

Create a new iov.c file that has iov_from_buf()....

fa6111f2 04/28/2010 04:58 pm Amit Shah

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....