diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-01-26 09:05:03 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-02-04 01:28:04 +0100 |
commit | e25a93032f8c09f1e0bfbc32e81431dd995f9605 (patch) | |
tree | 35f1ace89058fe7e4239cfafb53f5786bc48b247 /conf.c | |
parent | 71fa7362776bfa075d83383b600d2beeab923893 (diff) | |
download | passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.tar passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.tar.gz passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.tar.bz2 passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.tar.lz passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.tar.xz passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.tar.zst passt-e25a93032f8c09f1e0bfbc32e81431dd995f9605.zip |
util: Add read_remainder() and read_all_buf()
These are symmetric to write_remainder() and write_all_buf() and
almost a copy and paste of them, with the most notable differences
being reversed reads/writes and a couple of better-safe-than-sorry
asserts to keep Coverity happy.
I'll use them in the next patch. At least for the moment, they're
going to be used for vhost-user mode only, so I'm not unconditionally
enabling readv() in the seccomp profile: the caller has to ensure it's
there.
[dgibson: make read_remainder() take const pointer to iovec]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
0 files changed, 0 insertions, 0 deletions