qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 05/12] qdev: add reference count to a device


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 05/12] qdev: add reference count to a device for the BusChild
Date: Fri, 25 Jan 2013 13:11:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Il 25/01/2013 13:08, Andreas Färber ha scritto:
>> > Signed-off-by: Paolo Bonzini <address@hidden>
> I don't understand the comments about ownership. As far as I understand,
> there's one ref for the child list entry and one additional ref for the
> property but no "transfer" of ownership.

The transfer happens because the link property right now is
theoretically mutable.  The link will take care of unref'ing the old
object and ref'ing the new one when the target changes.

Paolo

> Having said that, ref'ing and unref'ing
> 
> Reviewed-by: Andreas Färber <address@hidden>




reply via email to

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