]> git.ipfire.org Git - thirdparty/qemu.git/commit
io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers
authorElena Ufimtseva <elena.ufimtseva@oracle.com>
Fri, 29 Jan 2021 16:46:09 +0000 (11:46 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 10 Feb 2021 09:23:28 +0000 (09:23 +0000)
commitbebab91ebdfc591f8793a9a17370df1bfbe8b2ca
tree35c5192fd8c1087a650229cfefc97a86feda69ef
parentbfa42387505168782ba7b339d0b13c23648e6207
io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers

Adds qio_channel_readv_full_all_eof() and qio_channel_readv_full_all()
to read both data and FDs. Refactors existing code to use these helpers.

Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: b059c4cc0fb741e794d644c144cc21372cad877d.1611938319.git.jag.raman@oracle.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/io/channel.h
io/channel.c