|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH 1/4] Add module infrastructure to QEMU |
Date: | Mon, 11 May 2009 17:02:47 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |