Re: [Qemu-devel] [RFC 2/3] qdev: Document ownership rules of qbus_create*()

2018-07-16 Thread Marcel Apfelbaum
On 07/12/2018 10:45 PM, Eduardo Habkost wrote: The ownership rules of those functions aren't trivial: the caller owns the new object if parent is NULL, otherwise ownership is transferred to the parent. Clarify that on comments. Signed-off-by: Eduardo Habkost --- include/hw/qdev-core.h | 2

[Qemu-devel] [RFC 2/3] qdev: Document ownership rules of qbus_create*()

2018-07-12 Thread Eduardo Habkost
The ownership rules of those functions aren't trivial: the caller owns the new object if parent is NULL, otherwise ownership is transferred to the parent. Clarify that on comments. Signed-off-by: Eduardo Habkost --- include/hw/qdev-core.h | 24 hw/core/bus.c |