]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/ukfile: Add `uk_iov_remaining` to help tell remaining iov space
authorSergiu Moga <sergiu@unikraft.io>
Wed, 26 Mar 2025 16:09:51 +0000 (18:09 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 23 Apr 2025 10:01:21 +0000 (10:01 +0000)
commit831967791b2a0f95a02d1b3ecf528340359c0cfd
tree4085589563213499fc6e726bbc801bd553f94d04
parent76dd27b8398d58b928f14ecbd45ecacc538648ee
lib/ukfile: Add `uk_iov_remaining` to help tell remaining iov space

Add a new routine `uk_iov_remaining` that simply checks how many bytes
the memory regions described by `iov[iovcnt]`, starting at `cur` offset
from the buffer at `iov[iovi]` can fit.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1619
lib/ukfile/include/uk/file/iovutil.h