[Qemu-devel] [PATCH 07/18] 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 --- include/qemu/iov.h | 13 + iov.c | 51 +++
[Qemu-devel] [PATCH 07/18] 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 --- iov.c | 51 +++ iov.h | 13 + 2 files changed, 64 insert