You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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>
6 days ago
..
acpi hw/arm/virt: Minor code reshuffling in create_acpi_ged 2 months ago
adc hw/adc: Remove MAX111X device 11 months ago
arm hw/arm/stm32f205_soc: Don't leak TYPE_OR_IRQ objects 1 week ago
audio virtio-snd: rewrite invalid tx/rx message handling 1 year ago
block hw/block: Drop unused nand.c 3 months ago
char MAX78000: UART Implementation 2 months ago
core add cpu_test_interrupt()/cpu_set_interrupt() helpers and use them tree wide 1 week ago
cpu
cxl hw/cxl: mailbox-utils: 0x5604 - FMAPI Initiate DC Add 2 months ago
display Load ramfb vgabios on x86 only. 2 months ago
dma include/hw/dma/xlnx_dpdma: Remove dependency on console.h 4 months ago
firmware hw/smbios: Remove 'uuid_encoded' argument from smbios_set_defaults() 1 year ago
fsi include/system: Move exec/memory.h to system/memory.h 5 months ago
gpio hw/gpio/aspeed: Fix definition of AspeedGPIOClass 3 months ago
hyperv hw/hyperv/hyperv.h: header cleanup 4 months ago
i2c include/hw: replace FSF postal address with licenses URL 2 months ago
i386 hw: add compat machines for 10.2 2 weeks ago
ide include/system: Move exec/ioport.h to system/ioport.h 5 months ago
input hw/input: Remove lm832x device 11 months ago
intc hw/intc/arm_gicv3_kvm: preserve pending interrupts during cpr 1 week ago
ipack hw/ipack: Remove legacy qemu_allocate_irqs() use 7 months ago
ipmi include/system: Move exec/memory.h to system/memory.h 5 months ago
isa include/system: Move exec/ioport.h to system/ioport.h 5 months ago
loongarch hw/loongarch/virt: Remove global variables about memmap tables 3 months ago
m68k include/system: Move exec/memory.h to system/memory.h 5 months ago
mem include/system: Move exec/memory.h to system/memory.h 5 months ago
mips include/system: Move exec/memory.h to system/memory.h 5 months ago
misc MAX78000: AES implementation 2 months ago
net include/system: Move exec/memory.h to system/memory.h 5 months ago
nubus include/system: Move exec/address-spaces.h to system/address-spaces.h 5 months ago
nvram hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 3 months ago
openrisc hw/openrisc: Support monitor dumpdtb command 7 months ago
pci pci: Add a memory attribute for pre-translated DMA operations 2 months ago
pci-bridge hw/pci-bridge/cxl-upstream: Add properties to control link speed and width 10 months ago
pci-host hw/pci-host/gpex-acpi: Use GED acpi pcihp property 2 months ago
ppc ppc/xive2: Implement PHYS ring VP push TIMA op 2 months ago
remote include/system: Move exec/memory.h to system/memory.h 5 months ago
riscv hw/riscv: Initial support for BOSC's Xiangshan Kunminghu FPGA prototype 2 months ago
rtc hw/i386: move rtc-reset-reinjection command out of hw/rtc 1 year ago
rx hw/rx/rx62n: Only call qdev_get_gpio_in() when necessary 2 years ago
s390x hw/s390x: add Control-Program Identification to QOM 3 months ago
scsi esp.c: only allow ESP commands permitted in the current asc_mode 2 months ago
sd hw/sd/sdcard: Remove support for spec v1.10 6 days ago
sensor
sh4 include/system: Move exec/memory.h to system/memory.h 5 months ago
southbridge include/system: Move exec/memory.h to system/memory.h 5 months ago
sparc hw/sparc/grlib: split out the headers for each peripherals 2 years ago
ssi hw/ssi: Document ssi_transfer() method 6 days ago
timer include/hw: replace FSF postal address with licenses URL 2 months ago
tricore include/system: Move exec/address-spaces.h to system/address-spaces.h 5 months ago
uefi hw/uefi: add include/hw/uefi/var-service.h 6 months ago
usb hw/usb/hcd-dwc3: Align global registers size with Linux 7 months ago
vfio vfio/pci: preserve pending interrupts 1 month ago
virtio UI-related for 10.1 2 months ago
vmapple hw/vmapple/virtio-blk: Add support for apple virtio-blk 6 months ago
watchdog aspeed/wdt: Add AST2700 support 1 year ago
xen hw/xen/arch_hvm: Unify x86 and ARM variants 2 months ago
xtensa include/system: Move exec/memory.h to system/memory.h 5 months ago
boards.h hw: add compat machines for 10.2 2 weeks ago
clock.h clock: clear callback on unparent 9 months ago
elf_ops.h.inc hw/elf_ops: Rename elf_ops.h -> elf_ops.h.inc 1 year ago
fw-path-provider.h
hotplug.h pci: fix 'hotplugglable' property behavior 3 years ago
hw.h meson: Only allow CONFIG_USER_ONLY from certain source sets 5 months ago
irq.h hw/irq: New qemu_init_irq_child() function 6 days ago
loader-fit.h hw/mips/boston: Support dumpdtb monitor commands 7 months ago
loader.h hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 3 months ago
nmi.h
or-irq.h hw: Replace qemu_or_irq typedef by OrIRQState 3 years ago
platform-bus.h
ptimer.h
qdev-clock.h
qdev-core.h hw/qdev: Factor qdev_hotunplug_allowed() out 8 months ago
qdev-dma.h
qdev-properties-system.h hw/display: Allow injection of virtio-gpu EDID name 2 months ago
qdev-properties.h qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() 2 months ago
register.h include/system: Move exec/memory.h to system/memory.h 5 months ago
registerfields.h
resettable.h reset: Add RESET_TYPE_WAKEUP 12 months ago
stream.h
sysbus.h hw/core/sysbus: Introduce sysbus_mmio_map_name() helper 2 months ago
usb.h include/system: Move exec/memory.h to system/memory.h 5 months ago
vmstate-if.h