io: add new qio_channel_{readv, writev, read, write}_all functions
commitd4622e55883211072621958d39ddaa73483d201e
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 30 Aug 2017 13:53:59 +0000 (30 14:53 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Sep 2017 12:21:58 +0000 (5 13:21 +0100)
treeb677177e34c985aebca4338a16a29af7b41a5ce1
parent50ea44f07744293b5f503411df8052bf113d8f1d
io: add new qio_channel_{readv, writev, read, write}_all functions

These functions wait until they are able to read / write the full
requested data buffer(s).

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/io/channel.h
io/channel.c
tests/io-channel-helpers.c