On Fri, 9 Dec 2022 16:42:15 +1100 David Gibson <david(a)gibson.dropbear.id.au> wrote:Currently this takes a msghdr, but the only thing we actually care about in there in is the io vector. Make it take an io vector directly. We alsos/in is/is/, if you re-spin.have a weird side effect of zeroing @buf_used. Just pass this by value and zero it in the caller instead.That was done on purpose: call a "flush" function, and that will set the right value for @buf_used. On the other hand, after 3/18, I think both options are equally readable, and if you found it weird, so be it. -- Stefano