qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6602] qemu: add qemu_free_irqs (Marcelo Tosatti)
Date: Wed, 11 Feb 2009 15:21:05 +0000	[thread overview]
Message-ID: <E1LXGtd-0004rj-Mw@cvs.savannah.gnu.org> (raw)

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

                 reply	other threads:[~2009-02-11 15:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LXGtd-0004rj-Mw@cvs.savannah.gnu.org \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).