On 24/06/2024 05:03, David Gibson wrote:On Fri, Jun 21, 2024 at 04:56:39PM +0200, Laurent Vivier wrote:Yes, it's equivalent. I'll use it in next version. Thanks, LaurentAdd a function that count how many buffers from a given iovec list we need to contain a given number of bytes. It also provides how many bytes are used in the last buffer if it is not fully filled.Isn't this equivalent to the iov_skip_bytes() function we already have?