]> git.proxmox.com Git - qemu.git/commit
iov: add iov_discard_front/back() to remove data
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Nov 2012 16:41:10 +0000 (17:41 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Jan 2013 14:58:05 +0000 (15:58 +0100)
commitd02776350d9c76348988fc9e58a64a4f6b1a9f61
tree16aca1151bf5e3658b60181c68dd07e7f537a49b
parent3e9ec521711ed033476098cfc7f23c992cc606a2
iov: add iov_discard_front/back() to remove data

The iov_discard_front/back() functions remove data from the front or
back of the vector.  This is useful when peeling off header/footer
structs.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/qemu/iov.h
iov.c