qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6602] qemu: add qemu_free_irqs (Marcelo Tosatti)
@ 2009-02-11 15:21 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-02-11 15:21 UTC (permalink / raw)
  To: qemu-devel

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 <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-11 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 15:21 [Qemu-devel] [6602] qemu: add qemu_free_irqs (Marcelo Tosatti) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).