]> Git Repo - qemu.git/commit
hw/core/sysbus: Add a function for creating and attaching an object
authorThomas Huth <[email protected]>
Mon, 16 Jul 2018 12:59:19 +0000 (14:59 +0200)
committerPeter Maydell <[email protected]>
Tue, 17 Jul 2018 12:12:49 +0000 (13:12 +0100)
commit046f370fb44172a34e54e341e7aeca4405af67a1
treefe366e5afbc789b872ff44c8ef94bf783b7f0082
parent0210b39d0e84d5a63a3e468f177c07a3a98d88a8
hw/core/sysbus: Add a function for creating and attaching an object

A lot of functions are initializing an object and attach it immediately
afterwards to the system bus. Provide a common function for this, which
also uses object_initialize_child() to make sure that the reference
counter is correctly initialized to 1 afterwards.

Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: 1531745974[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/core/sysbus.c
include/hw/sysbus.h
This page took 0.027259 seconds and 4 git commands to generate.