/qemu/hw/pci/ |
H A D | pci_bridge.c | 6780a22cc71227068925e7b70faa71d6641a9b1b Wed Dec 18 16:15:51 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qbus_free() function
Same reasoning as commit 02a5c4c97422b40034f31265e0f139f7846172a8 ("qdev: Drop misleading qdev_free() function"). The qbus_free() function removes the child from the namespace and decrements the reference count. It does not, however, guarantee to free the child since the refcount may still be held.
Just call object_unparent() directly.
Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
H A D | shpc.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
H A D | pcie.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/virtio/ |
H A D | virtio-bus.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/i386/xen/ |
H A D | xen_platform.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/include/hw/ |
H A D | qdev-core.h | 6780a22cc71227068925e7b70faa71d6641a9b1b Wed Dec 18 16:15:51 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qbus_free() function
Same reasoning as commit 02a5c4c97422b40034f31265e0f139f7846172a8 ("qdev: Drop misleading qdev_free() function"). The qbus_free() function removes the child from the namespace and decrements the reference count. It does not, however, guarantee to free the child since the refcount may still be held.
Just call object_unparent() directly.
Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/usb/ |
H A D | bus.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
H A D | dev-storage.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/core/ |
H A D | qdev.c | 6780a22cc71227068925e7b70faa71d6641a9b1b Wed Dec 18 16:15:51 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qbus_free() function
Same reasoning as commit 02a5c4c97422b40034f31265e0f139f7846172a8 ("qdev: Drop misleading qdev_free() function"). The qbus_free() function removes the child from the namespace and decrements the reference count. It does not, however, guarantee to free the child since the refcount may still be held.
Just call object_unparent() directly.
Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/acpi/ |
H A D | piix4.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/scsi/ |
H A D | scsi-bus.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|
/qemu/hw/s390x/ |
H A D | virtio-ccw.c | 02a5c4c97422b40034f31265e0f139f7846172a8 Wed Sep 11 12:54:09 UTC 2013 Stefan Hajnoczi <stefanha@redhat.com> qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed.
The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name.
Call object_unparent(obj) directly instead of having a qdev wrapper function.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
|