[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv4 02/11] change iov_* function prototypes to be
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-devel] [PATCHv4 02/11] change iov_* function prototypes to be more appropriate |
Date: |
Fri, 16 Mar 2012 20:28:08 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20120216 Icedove/8.0 |
On 16.03.2012 20:14, Anthony Liguori wrote:
> On 03/15/2012 04:00 PM, Michael Tokarev wrote:
>> Reorder arguments to be more natural, readable and
>> consistent with other iov_* functions, and change
>> argument names, from:
>> iov_from_buf(iov, iov_cnt, buf, iov_off, size)
>> to
>> iov_from_buf(iov, iov_cnt, offset, buf, bytes)
>>
>> The result becomes natural English:
>
> I don't think this is a good idea. This is code churn for nothing but
> cosmetic reasons. I don't think there's a lot of value in that.
I answered this just a few lines below:
>> Now, it might look wrong to pay so much attention
>> to so small things. But we've so many badly designed
>> interfaces already so the whole thing becomes rather
>> confusing or error prone. One example of this is
>> previous commit and small discussion which emerged
>> from it, with an outcome that the utility functions
>> like these aren't well-understdandable, leading to
>> strange usage cases. That's why I paid quite some
>> attention to this set of functions and a few
>> others in subsequent patches.
Thanks,
/mjt
- Re: [Qemu-devel] [PATCHv4 10/11] cleanup qemu_co_sendv(), qemu_co_recvv() and friends, (continued)
- [Qemu-devel] [PATCHv4 06/11] consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistent, Michael Tokarev, 2012/03/15
- [Qemu-devel] [PATCHv4 11/11] rewrite iov_send_recv() and move it to iov.c, Michael Tokarev, 2012/03/15
- [Qemu-devel] [PATCHv4 07/11] change qemu_iovec_to_buf() to match other to, from_buf functions, Michael Tokarev, 2012/03/15
- [Qemu-devel] [PATCHv4 05/11] allow qemu_iovec_from_buffer() to specify offset from which to start copying, Michael Tokarev, 2012/03/15
- [Qemu-devel] [PATCHv4 02/11] change iov_* function prototypes to be more appropriate, Michael Tokarev, 2012/03/15
- [Qemu-devel] [PATCHv4 03/11] rewrite iov_* functions, Michael Tokarev, 2012/03/15
- Re: [Qemu-devel] [PATCHv4 00/11] cleanup/consolidate iovec functions, Paolo Bonzini, 2012/03/16