Received: from eggs.gnu.org ([208.118.235.92]:58738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6PE1-0007sN-UL for qemu-devel@nongnu.org; Sat, 10 Mar 2012 11:32:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6PE0-0006Lt-Bi for qemu-devel@nongnu.org; Sat, 10 Mar 2012 11:32:57 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:54829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6PE0-0006Kk-4J for qemu-devel@nongnu.org; Sat, 10 Mar 2012 11:32:56 -0500 From: Michael Tokarev Date: Sat, 10 Mar 2012 20:32:25 +0400 Message-Id: <1331397150-25700-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PATCH 0/5] cleanup/consolidate some iovec functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Tokarev This is a little cleanup/consolidation for some iovec-related low-level routines in qemu. First patch consolidates qemu_iovec_memset_skip() and qemu_iovec_memset(), which is just a little cleanup. The rest renames arguments of iovec I/O functions to be more understandable/obvious (see comments in patch 2), changes the types to be size_t instead of int, and consolidates send and recv paths into one (with one extra argument, do_send), since the code is exactly the same. This also lets us to use common read/write code paths in upper layer. Michael Tokarev (5): Consolidate qemu_iovec_memset{,_skip}() into single, simplified function change prototypes of qemu_sendv() and qemu_recvv() Export qemu_sendv_recvv() and use it in (inlined) qemu_sendv() and qemu_recvv() cleanup qemu_co_sendv(), qemu_co_recvv() and friends rewrite and comment qemu_sendv_recvv() block/qcow2.c | 4 +- block/qed.c | 4 +- cutils.c | 196 +++++++++++++++++++++------------------------------ linux-aio.c | 2 +- posix-aio-compat.c | 2 +- qemu-common.h | 55 ++++++++------ qemu-coroutine-io.c | 83 ++++++---------------- 7 files changed, 138 insertions(+), 208 deletions(-) -- 1.7.9.1