qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] add byteordered types


From: M. Warner Losh
Subject: Re: [Qemu-devel] [patch] add byteordered types
Date: Wed, 27 Aug 2008 08:47:38 -0600 (MDT)

In message: <address@hidden>
            Gerd Hoffmann <address@hidden> writes:
: Paul Brook wrote:
: > On Wednesday 27 August 2008, Gerd Hoffmann wrote:
: >> +static inline le16 write_le16(uint16_t cpu) \
: > 
: > This is IMHO a bad name for this function. It doesn't write anything.
: 
: I'm not that happy the name too and certainly open for better
: suggestions I could use instead of read/write.
: 
: The alternatives I can think of are not very nice either:
: 
:  (1) get/set -- same problem as read/write.
:  (2) make_foo() instead of write_foo() -- "make" is too generic IMHO.
:  (3) create_foo() instead of write_foo() -- no nice symmetric
:      replacement for read_foo().
: 
: better ideas anyone?

Using the existing names that linux/FreeBSD/NetBSD/OpenBSD are using?

Warner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]