Received: from eggs.gnu.org ([209.51.188.92]:32924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAsIx-0003nF-8n for qemu-devel@nongnu.org; Mon, 01 Apr 2019 04:28:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAsIw-0002uW-E0 for qemu-devel@nongnu.org; Mon, 01 Apr 2019 04:28:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39518) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hAsIw-0002uF-6q for qemu-devel@nongnu.org; Mon, 01 Apr 2019 04:28:30 -0400 From: Markus Armbruster References: <87h8c82woh.fsf@dusky.pond.sub.org> <20190318115407.GD26287@redhat.com> <87sgvke48n.fsf@dusky.pond.sub.org> <195ae49b-e167-137f-430b-a4616d3a45c0@redhat.com> <87r2apczz4.fsf@dusky.pond.sub.org> <234ca694-53c2-282c-eb57-de05724ebc77@redhat.com> Date: Mon, 01 Apr 2019 10:28:25 +0200 In-Reply-To: <234ca694-53c2-282c-eb57-de05724ebc77@redhat.com> (Paolo Bonzini's message of "Mon, 1 Apr 2019 09:58:55 +0200") Message-ID: <87pnq62kpi.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Issues around TYPE_INTERFACE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , qemu-devel@nongnu.org, Andreas =?utf-8?Q?F=C3=A4rber?= , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Paolo Bonzini writes: > On 29/03/19 19:11, Markus Armbruster wrote: >>>>>> Yet they're used for less than half of the interface names: >>>>>> >>>>>> TYPE_ISADMA >>>>>> TYPE_MEMORY_DEVICE >>>>>> TYPE_NMI > > Could be renamed to TYPE_NMI_MONITOR_HANDLER. > >>>>>> TYPE_NVRAM >>>>>> TYPE_PPC_VIRTUAL_HYPERVISOR >>>>>> TYPE_STREAM_SLAVE >>>>>> TYPE_USER_CREATABLE >>>>>> TYPE_XICS_FABRIC >>>>>> TYPE_XIVE_NOTIFIER >>>>>> >>>>>> Can we agree on one naming convention, and enforce it? >>> >>> I tend to like interface names that express an ability ("foo-er", >>> "foo-able"). Anything else should use a *_IF or *_IFACE suffix. >> >> I like the _IFACE suffix. >> >> Does eliding the _IFACE suffix for names ending with ER or ABLE improve >> readability? >> >> "foo-er" interface types: >> >> INTERFACE_RDMA_PROVIDER >> TYPE_FW_PATH_PROVIDER >> TYPE_HOTPLUG_HANDLER >> TYPE_INTERRUPT_STATS_PROVIDER >> TYPE_XIVE_NOTIFIER >> >> "foo-er" non-interface types: > > Leaving out those where grammar threw a curve ball, or things that > aren't QOM types, only the following remain (some of which could be > debated further): > >> TYPE_EXYNOS4210_COMBINER >> TYPE_FILTER_REWRITER >> TYPE_GENERIC_LOADER >> TYPE_PC_SPEAKER >> TYPE_PR_MANAGER >> TYPE_PR_MANAGER_HELPER >> TYPE_QIO_DNS_RESOLVER >> TYPE_QIO_NET_LISTENER >> TYPE_XIVE_ROUTER As long as grep doesn't understand grammar, further debate seems not without merit :) >> "foo-able" interface types: >> >> TYPE_USER_CREATABLE >> >> "foo-able" non-interface types: >> >> TYPE_SPAPR_TCE_TABLE > > Same here, doesn't really count. > > Paolo