From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3daK-0006XU-2d for qemu-devel@nongnu.org; Mon, 11 May 2009 18:02:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3daF-0006Wh-0l for qemu-devel@nongnu.org; Mon, 11 May 2009 18:02:55 -0400 Received: from [199.232.76.173] (port=38819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3daE-0006We-Th for qemu-devel@nongnu.org; Mon, 11 May 2009 18:02:50 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:34589) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3daE-0001Lz-Bo for qemu-devel@nongnu.org; Mon, 11 May 2009 18:02:50 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n4BLx5eJ021109 for ; Mon, 11 May 2009 15:59:05 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n4BM2nce232396 for ; Mon, 11 May 2009 16:02:49 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n4BM2moh018902 for ; Mon, 11 May 2009 16:02:48 -0600 Message-ID: <4A08A087.9050708@us.ibm.com> Date: Mon, 11 May 2009 17:02:47 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/4] Add module infrastructure to QEMU References: <1242052009-27339-1-git-send-email-aliguori@us.ibm.com> <1242052009-27339-2-git-send-email-aliguori@us.ibm.com> <20090511215325.GB18336@game.jcrosoft.org> In-Reply-To: <20090511215325.GB18336@game.jcrosoft.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jean-Christophe PLAGNIOL-VILLARD Cc: qemu-devel@nongnu.org, Paul Brook Jean-Christophe PLAGNIOL-VILLARD wrote: >> +#ifndef QEMU_MODULE_H >> +#define QEMU_MODULE_H >> + >> +#define module_init(function, priority) \ >> +static void __attribute__((constructor)) qemu_init_ ## function(void) { \ >> + register_module_init(function, priority); \ >> +} >> > why not use the constructor priority? > We're just using constructors to register our real constructors so priority wouldn't really help us in the gcc constructors. > Best Regards, > J. > -- Regards, Anthony Liguori