qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/4] Add module infrastructure to QEMU


From: Paul Brook
Subject: Re: [Qemu-devel] [PATCH 1/4] Add module infrastructure to QEMU
Date: Tue, 12 May 2009 11:15:25 +0100
User-agent: KMail/1.9.9

> >> 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.
>
> Hmm?  Just call the real constructors in the order they are registered
> by the (prioritized) gcc constructors should do the trick, no?

You're missing the point. The "priority" field is mis-named. It's actually 
defining different categories of init function that are invoked when the 
corresponding bit of qemu want them (e.g. registration of block backends v.s. 
registration of character backends).

Paul




reply via email to

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