On Mon, Nov 03, 2025 at 11:16:28AM +0100, Stefano Brivio wrote:
As I'm going to touch those in the next commit.
Signed-off-by: Stefano Brivio
Reviewed-by: David Gibson
/** - * iov_to_buf() - Copy data from a scatter/gather I/O vector (struct iovec) to - * a buffer efficiently. - * - * @iov: Pointer to the array of struct iovec describing the scatter/gather - * I/O vector. - * @iov_cnt: Number of elements in the iov array. - * @offset: Offset within the first element of iov from where copying should start.
The old description is, I think, wrong...
- * @buf: Pointer to the destination buffer where data will be copied. - * @bytes: Total number of bytes to copy from iov to buf. + * iov_to_buf() - Copy from iovec to flat buffer + * @iov: Source iovec array + * @iov_cnt: Number of elements in iovec array + * @offset: Source offset altogether, counted in flattened iovec
...but the new one I can't parse.
+ * @buf: Destination buffer + * @bytes: Bytes to copy
-- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson