diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2026-05-20 11:55:25 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-26 12:17:01 +0200 |
| commit | 9361b6bab7b7e661b1a4a6b4847800e82dad0224 (patch) | |
| tree | acbc29db2e41765378a2c386bfee740090608323 /test/lib | |
| parent | 28ee143d92df5fd779a3f16b3f2717ab478584da (diff) | |
| download | passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.tar passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.tar.gz passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.tar.bz2 passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.tar.lz passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.tar.xz passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.tar.zst passt-9361b6bab7b7e661b1a4a6b4847800e82dad0224.zip | |
iov: Introduce IOV_PUSH_HEADER() macro
Add iov_push_header_() and its typed wrapper IOV_PUSH_HEADER() to write
a header into an iov_tail at the current offset and advance past it.
This is the write counterpart to IOV_PEEK_HEADER() / IOV_REMOVE_HEADER(),
using iov_from_buf() to copy the header data across iovec boundaries.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions
