[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6602] qemu: add qemu_free_irqs (Marcelo Tosatti)
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6602] qemu: add qemu_free_irqs (Marcelo Tosatti) |
Date: |
Wed, 11 Feb 2009 15:21:05 +0000 |
Revision: 6602
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6602
Author: aliguori
Date: 2009-02-11 15:21:04 +0000 (Wed, 11 Feb 2009)
Log Message:
-----------
qemu: add qemu_free_irqs (Marcelo Tosatti)
Signed-off-by: Marcelo Tosatti <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/hw/irq.c
trunk/hw/irq.h
Modified: trunk/hw/irq.c
===================================================================
--- trunk/hw/irq.c 2009-02-11 15:20:58 UTC (rev 6601)
+++ trunk/hw/irq.c 2009-02-11 15:21:04 UTC (rev 6602)
@@ -56,6 +56,12 @@
return s;
}
+void qemu_free_irqs(qemu_irq *s)
+{
+ qemu_free(s[0]);
+ qemu_free(s);
+}
+
static void qemu_notirq(void *opaque, int line, int level)
{
struct IRQState *irq = opaque;
Modified: trunk/hw/irq.h
===================================================================
--- trunk/hw/irq.h 2009-02-11 15:20:58 UTC (rev 6601)
+++ trunk/hw/irq.h 2009-02-11 15:21:04 UTC (rev 6602)
@@ -27,6 +27,7 @@
/* Returns an array of N IRQs. */
qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n);
+void qemu_free_irqs(qemu_irq *s);
/* Returns a new IRQ with opposite polarity. */
qemu_irq qemu_irq_invert(qemu_irq irq);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6602] qemu: add qemu_free_irqs (Marcelo Tosatti),
Anthony Liguori <=