Files
xemu/include/hw
Peter Maydell 01941107eb hw/irq: New qemu_init_irq_child() function
The qemu_init_irq() function initializes a TYPE_IRQ QOM object.  The
caller is therefore responsible for eventually calling
qemu_free_irq() to unref (and thus free) it.

In many places where we want to initialize an IRQ we are in
the init/realize of some other QOM object; if we have a variant
of this function that calls object_initialize_child() then the
IRQ will be automatically cleaned up when its parent object is
destroyed, and we don't need to remember to manually free it.

Implement qemu_init_irq_child(), which is to qemu_init_irq()
what object_initialize_child() is to object_initialize().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250821154053.2417090-2-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-09-02 17:57:05 +02:00
..
…
2025-05-29 17:45:13 +01:00
2025-07-08 17:31:38 +01:00
…
2025-05-08 14:22:12 +02:00
2025-08-27 07:07:53 +02:00
2025-07-08 17:31:59 +01:00
…
…
2025-08-27 07:07:53 +02:00
2024-12-10 18:49:24 +01:00
…
…
…
…
…