On Tue, Mar 13, 2012 at 11:18 PM, Andreas Färber <afaer...@suse.de> wrote: > Am 13.03.2012 16:17, schrieb Zhi Yong Wu: >> On Tue, Mar 13, 2012 at 11:10 PM, Andreas Färber <afaer...@suse.de> wrote: >>> Am 13.03.2012 15:52, schrieb Zhi Yong Wu: >>>> On Tue, Mar 13, 2012 at 10:36 PM, Andreas Färber <afaer...@suse.de> wrote: >>>>> What you are looking for is the "parent" property which gets set up by >>>> You mean that current device object should have one "parent" property? >>>> Its parent device should have one "child" property pointing to it? >>>> But i have not seen this property in qom-list output. >>>> [root@f15 qemu]# QMP/qom-list -s /tmp/server.sock / >>>> vga/ >>>> i440fx/ >>>> peripheral/ >>>> peripheral-anon/ >>> >>> Every one of these with */ is a child, in this case of the root "/". :) >> I see. but i want to know how it use object to represent this relationship. > > See object_property_add_child() in qom/object.c. great, thanks. > > Andreas > > -- > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
-- Regards, Zhi Yong Wu