Statistics
| Branch: | Revision:

root / iov.h @ ded37f0d

History | View | Annotate | Download (3.5 kB)

# Date Author Comment
844b5cea 09/28/2012 01:16 pm Michael S. Tsirkin

iov: add const annotation

iov_from_buf does not change iov, make it const.

Signed-off-by: Michael S. Tsirkin <>

3e80bf93 06/11/2012 10:12 pm Michael Tokarev

rename qemu_sendv to iov_send, change proto and move declarations to iov.h

Rename arguments and use size_t for sizes instead of int,
from
int
qemu_sendv(int sockfd, struct iovec *iov,
int len, int iov_offset)
to
ssize_t
iov_send(int sockfd, struct iovec *iov,...

e3e87df4 06/11/2012 10:12 pm Michael Tokarev

export iov_send_recv() and use it in iov_send() and iov_recv()

Rename do_sendv_recvv() to iov_send_recv(), change its last arg
(do_send) from int to bool, export it in iov.h, and made the two
callers of it (iov_send() and iov_recv()) to be trivial #defines...

25e5e4c7 06/11/2012 10:12 pm Michael Tokarev

rewrite iov_send_recv() and move it to iov.c

Make it much more understandable, add a missing
iov_cnt argument (number of iovs in the iov), and
add comments to it.

The new implementation has been extensively tested
by splitting a large buffer into many small...

2278a69e 06/07/2012 08:09 pm Michael Tokarev

rewrite iov_* functions

This changes implementations of all iov_*
functions, completing the previous step.

All iov_* functions now ensure that this offset
argument is within the iovec (using assertion),
but lets to specify `bytes' value larger than
actual length of the iovec - in this case they...

dcf6f5e1 06/07/2012 07:43 pm Michael Tokarev

change iov_* function prototypes to be more appropriate

Reorder arguments to be more natural, readable and
consistent with other iov_* functions, and change
argument names, from:
iov_from_buf(iov, iov_cnt, buf, iov_off, size)
to
iov_from_buf(iov, iov_cnt, offset, buf, bytes)...

3a1dca94 08/04/2011 04:51 pm Gerd Hoffmann

Add iov_hexdump()

Useful for debugging purposes.

Signed-off-by: Gerd Hoffmann <>

8d15028e 08/04/2011 04:51 pm Gerd Hoffmann

Add iov_clear()

Fill the spefified area with zeros.

Signed-off-by: Gerd Hoffmann <>

348e7b8d 07/18/2011 05:06 pm Hannes Reinecke

iov: Update parameter usage in iov_(to|from)_buf()

iov_to_buf() has an 'offset' parameter, iov_from_buf() hasn't.
This patch adds the missing parameter to iov_from_buf().
It also renames the 'offset' parameter to 'iov_off' to
emphasize it's the offset into the iovec and not the buffer....

4c64d5b5 05/10/2010 07:36 pm Amit Shah

iov: Move from hw/ to topdir

The iov functions can be useful to other code as well.

Signed-off-by: Amit Shah <>
CC: Christoph Hellwig <>
Signed-off-by: Anthony Liguori <>