Home
last modified time | relevance | path

Searched hist:e4d5639d (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A DMakefilee4d5639d Tue Apr 27 07:34:05 CDT 2010 Amit Shah <amit.shah@redhat.com> 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().

Convert virtio-net and virtio-serial-bus over to use this functionality.
virtio-net used ints to hold sizes, the new function is going to use
size_t types.

Later commits will add the opposite functionality -- going from an iov
to a linear buffer.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>