Index: kernel/Makefile
===================================================================
--- kernel/Makefile	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/Makefile	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -149,4 +149,5 @@
 	generic/src/ddi/ddi.c \
 	generic/src/interrupt/interrupt.c \
+	generic/src/interrupt/irq.c \
 	generic/src/main/main.c \
 	generic/src/main/kinit.c \
Index: kernel/arch/sparc64/src/drivers/kbd.c
===================================================================
--- kernel/arch/sparc64/src/drivers/kbd.c	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/arch/sparc64/src/drivers/kbd.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -41,5 +41,5 @@
 #include <genarch/kbd/ns16550.h>
 #endif
-
+#include <irq.h>
 #include <arch/mm/page.h>
 #include <arch/types.h>
@@ -52,4 +52,6 @@
 
 kbd_type_t kbd_type = KBD_UNKNOWN;
+
+static irq_t kbd_irq;
 
 /** Initialize keyboard.
@@ -102,4 +104,6 @@
 	int inr;
 	
+	irq_initialize(&kbd_irq);
+	
 	switch (kbd_type) {
 	case KBD_Z8530:
@@ -112,6 +116,14 @@
 			printf("Failed to determine keyboard interrupt.\n");
 			return;
+		} else {
+			kbd_irq.inr = inr;
+			kbd_irq.devno = 0;			/* FIXME: assign unique devno */
+			kbd_irq.trigger = IRQ_TRIGGER_LEVEL;
+			kbd_irq.claim = z8530_claim;
+			kbd_irq.handler = z8530_irq_handler;
+			irq_register(&kbd_irq);
 		}
 		break;
+		
 	case KBD_NS16550:
 		size = ((ofw_ebus_reg_t *) prop->value)->size;
@@ -123,6 +135,14 @@
 			printf("Failed to determine keyboard interrupt.\n");
 			return;
+		} else {
+			kbd_irq.inr = inr;
+			kbd_irq.devno = 0;			/* FIXME: assign unique devno */
+			kbd_irq.trigger = IRQ_TRIGGER_LEVEL;
+			kbd_irq.claim = ns16550_claim;
+			kbd_irq.handler = ns16550_irq_handler;
+			irq_register(&kbd_irq);
 		}
 		break;
+
 	default:
 		panic("Unexpected type.\n");
Index: kernel/arch/sparc64/src/sparc64.c
===================================================================
--- kernel/arch/sparc64/src/sparc64.c	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/arch/sparc64/src/sparc64.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -47,4 +47,5 @@
 #include <genarch/ofw/ofw_tree.h>
 #include <userspace.h>
+#include <irq.h>
 
 bootinfo_t bootinfo;
@@ -77,6 +78,8 @@
 void arch_post_mm_init(void)
 {
-	if (config.cpu_active == 1)
+	if (config.cpu_active == 1) {
+		irq_init(1<<11, 128);
 		standalone_sparc64_console_init();
+	}
 }
 
Index: kernel/arch/sparc64/src/trap/interrupt.c
===================================================================
--- kernel/arch/sparc64/src/trap/interrupt.c	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/arch/sparc64/src/trap/interrupt.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -36,6 +36,5 @@
 #include <arch/trap/interrupt.h>
 #include <interrupt.h>
-#include <arch/drivers/fhc.h>
-#include <arch/drivers/kbd.h>
+#include <irq.h>
 #include <typedefs.h>
 #include <arch/types.h>
@@ -45,8 +44,13 @@
 #include <arch/barrier.h>
 #include <print.h>
-#include <genarch/kbd/z8530.h>
 #include <arch.h>
 #include <mm/tlb.h>
 #include <config.h>
+
+/*
+ * To be removed once we get rid of the dependency in ipc_irq_bind_arch().
+ */
+#include <arch/drivers/kbd.h>
+#include <genarch/kbd/z8530.h>
 
 /** Register Interrupt Level Handler.
@@ -72,4 +76,9 @@
 }
 
+/** Process hardware interrupt.
+ *
+ * @param n Ignored.
+ * @param istate Ignored.
+ */
 void interrupt(int n, istate_t *istate)
 {
@@ -80,43 +89,29 @@
 	data0 = asi_u64_read(ASI_UDB_INTR_R, ASI_UDB_INTR_R_DATA_0);
 
-	switch (data0) {
-#ifdef CONFIG_Z8530
-	case Z8530_INTRCV_DATA0:
-		if (kbd_type != KBD_Z8530)
-			break;
+	irq_t *irq = irq_dispatch(data0);
+	if (irq) {
 		/*
-		 * So far, we know we got this interrupt through the FHC.
-		 * Since we don't have enough information about the FHC and
-		 * because the interrupt looks like level sensitive,
-		 * we cannot handle it by scheduling one of the level
-		 * interrupt traps. Call the interrupt handler directly.
+		 * The IRQ handler was found.
 		 */
-
-		if (z8530_belongs_to_kernel)
-			z8530_interrupt();
-		else
-			ipc_irq_send_notif(0);
-		fhc_clear_interrupt(central_fhc, data0);
-		break;
-
+		irq->handler(irq, irq->arg);
+	} else if (data0 > config.base) {
+		/*
+		 * This is a cross-call.
+		 * data0 contains address of kernel function.
+		 * We call the function only after we verify
+		 * it is on of the supported ones.
+		 */
+#ifdef CONFIG_SMP
+		if (data0 == (uintptr_t) tlb_shootdown_ipi_recv) {
+			tlb_shootdown_ipi_recv();
+		}
 #endif
-	default:
-		if (data0 > config.base) {
-			/*
-			 * This is a cross-call.
-			 * data0 contains address of kernel function.
-			 * We call the function only after we verify
-			 * it is on of the supported ones.
-			 */
-#ifdef CONFIG_SMP
-			if (data0 == (uintptr_t) tlb_shootdown_ipi_recv) {
-				tlb_shootdown_ipi_recv();
-				break;
-			}
+	} else {
+		/*
+		 * Spurious interrupt.
+		 */
+#ifdef CONFIG_DEBUG
+		printf("cpu%d: spurious interrupt (intrcv=%#llx, data0=%#llx)\n", CPU->id, intrcv, data0);
 #endif
-		}
-			
-		printf("cpu%d: spurious interrupt (intrcv=%#llx, data0=%#llx)\n", CPU->id, intrcv, data0);
-		break;
 	}
 
Index: kernel/genarch/include/kbd/ns16550.h
===================================================================
--- kernel/genarch/include/kbd/ns16550.h	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/genarch/include/kbd/ns16550.h	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -39,4 +39,5 @@
 
 #include <typedefs.h>
+#include <irq.h>
 
 extern void ns16550_init(void);
@@ -45,4 +46,6 @@
 extern void ns16550_release(void);
 extern char ns16550_key_read(chardev_t *d);
+extern irq_ownership_t ns16550_claim(void);
+extern void ns16550_irq_handler(irq_t *irq, void *arg, ...);
 
 #endif
Index: kernel/genarch/include/kbd/z8530.h
===================================================================
--- kernel/genarch/include/kbd/z8530.h	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/genarch/include/kbd/z8530.h	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -38,7 +38,6 @@
 #define KERN_Z8530_H_
 
+#include <irq.h>
 #include <typedefs.h>
-
-#define Z8530_INTRCV_DATA0	0x39	/* hardcoded for use in Simics */
 
 extern bool z8530_belongs_to_kernel;
@@ -50,4 +49,6 @@
 extern void z8530_interrupt(void);
 extern char z8530_key_read(chardev_t *d);
+extern irq_ownership_t z8530_claim(void);
+extern void z8530_irq_handler(irq_t *irq, void *arg, ...);
 
 #endif
Index: kernel/genarch/src/kbd/ns16550.c
===================================================================
--- kernel/genarch/src/kbd/ns16550.c	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/genarch/src/kbd/ns16550.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -40,4 +40,5 @@
 #include <genarch/kbd/scanc_sun.h>
 #include <arch/drivers/ns16550.h>
+#include <irq.h>
 #include <arch/interrupt.h>
 #include <cpu.h>
@@ -161,4 +162,15 @@
 }
 
+irq_ownership_t ns16550_claim(void)
+{
+	/* TODO */
+	return IRQ_ACCEPT;
+}
+
+void ns16550_irq_handler(irq_t *irq, void *arg, ...)
+{
+	panic("Not yet implemented.\n");
+}
+
 /** @}
  */
Index: kernel/genarch/src/kbd/z8530.c
===================================================================
--- kernel/genarch/src/kbd/z8530.c	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/genarch/src/kbd/z8530.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -40,6 +40,8 @@
 #include <genarch/kbd/scanc_sun.h>
 #include <arch/drivers/z8530.h>
+#include <irq.h>
 #include <arch/interrupt.h>
 #include <arch/drivers/kbd.h>
+#include <arch/drivers/fhc.h>
 #include <cpu.h>
 #include <arch/asm.h>
@@ -170,4 +172,25 @@
 }
 
+irq_ownership_t z8530_claim(void)
+{
+	return (z8530_read_a(RR0) & RR0_RCA);
+}
+
+void z8530_irq_handler(irq_t *irq, void *arg, ...)
+{
+	/*
+	 * So far, we know we got this interrupt through the FHC.
+	 * Since we don't have enough information about the FHC and
+	 * because the interrupt looks like level sensitive,
+	 * we cannot handle it by scheduling one of the level
+	 * interrupt traps. Process the interrupt directly.
+	 */
+	if (z8530_belongs_to_kernel)
+		z8530_interrupt();
+	else
+		ipc_irq_send_notif(0);
+	fhc_clear_interrupt(central_fhc, irq->inr);
+}
+
 /** @}
  */
Index: kernel/generic/include/ipc/irq.h
===================================================================
--- kernel/generic/include/ipc/irq.h	(revision 8ce84991b196fbdd0b7d639a36b146cf784f38fb)
+++ kernel/generic/include/ipc/irq.h	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -33,6 +33,6 @@
  */
 
-#ifndef KERN_IRQ_H_
-#define KERN_IRQ_H_
+#ifndef KERN_IPC_IRQ_H_
+#define KERN_IPC_IRQ_H_
 
 /** Maximum length of IPC IRQ program */
Index: kernel/generic/include/irq.h
===================================================================
--- kernel/generic/include/irq.h	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
+++ kernel/generic/include/irq.h	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2006 Jakub Jermar
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/** @addtogroup genericinterrupt
+ * @{
+ */
+/** @file
+ */
+
+#ifndef KERN_IRQ_H_
+#define KERN_IRQ_H_
+
+#include <arch/types.h>
+#include <adt/list.h>
+
+typedef int32_t inr_t;
+typedef int32_t devno_t;
+
+typedef enum {
+	IRQ_DECLINE,		/**< Decline to service. */
+	IRQ_ACCEPT		/**< Accept to service. */
+} irq_ownership_t;
+
+typedef enum {
+	IRQ_TRIGGER_LEVEL = 1,
+	IRQ_TRIGGER_EDGE
+} irq_trigger_t;
+
+typedef struct irq irq_t;
+
+typedef void (* irq_handler_t)(irq_t *irq, void *arg, ...);
+
+/** Structure representing one device IRQ.
+ *
+ * If one device has multiple interrupts, there will
+ * be multiple irq_t instantions with the same
+ * devno.
+ */
+struct irq {
+	/** Hash table link. */
+	link_t link;
+
+	/** Unique device number. -1 if not yet assigned. */
+	devno_t devno;
+
+	/** Actual IRQ number. -1 if not yet assigned. */
+	inr_t inr;
+	/** Task ID of the task to be notified about the IRQ or 0. */
+	task_id_t notif;
+	/** Trigger level of the IRQ.*/
+	irq_trigger_t trigger;
+	/** Claim ownership of the IRQ. */
+	irq_ownership_t (* claim)(void);
+	/** Handler for this IRQ and device. */
+	irq_handler_t handler;
+	/** Argument for the handler. */
+	void *arg;
+};
+
+extern void irq_init(count_t inrs, count_t chains);
+extern void irq_initialize(irq_t *irq);
+extern void irq_register(irq_t *irq);
+extern irq_t *irq_dispatch(inr_t inr);
+
+#endif
+
+/** @}
+ */
Index: kernel/generic/src/interrupt/irq.c
===================================================================
--- kernel/generic/src/interrupt/irq.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
+++ kernel/generic/src/interrupt/irq.c	(revision 0d107f313852cf9ca1abc289a98baf2c22f6c95c)
@@ -0,0 +1,267 @@
+/*
+ * Copyright (C) 2006 Jakub Jermar
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/** @addtogroup genericinterrupt
+ * @{
+ */
+/**
+ * @file
+ * @brief	IRQ redirector.
+ *
+ * This file provides means of connecting IRQs with particular
+ * devices and logic for dispatching interrupts to IRQ handlers
+ * defined by those devices.
+ *
+ * This code is designed to support:
+ * - multiple devices sharing single IRQ
+ * - multiple IRQs per signle device
+ *
+ *
+ * Note about architectures.
+ *
+ * Some architectures has the term IRQ well defined. Examples
+ * of such architectures include amd64, ia32 and mips32. Some
+ * other architectures, such as sparc64, don't use the term
+ * at all. In those cases, we boldly step forward and define what
+ * an IRQ is.
+ *
+ * The implementation is generic enough and still allows the
+ * architectures to use the hardware layout effectively.
+ * For instance, on amd64 and ia32, where there is only 16
+ * IRQs, the irq_hash_table can be optimized to a one-dimensional
+ * array. Next, when it is known that the IRQ numbers (aka INR's)
+ * are unique, the claim functions can always return IRQ_ACCEPT.
+ */
+
+#include <irq.h>
+#include <adt/hash_table.h>
+#include <arch/types.h>
+#include <typedefs.h>
+#include <synch/spinlock.h>
+#include <arch.h>
+
+/**
+ * Spinlock protecting the hash table.
+ * This lock must be taken only when interrupts are disabled.
+ */
+SPINLOCK_INITIALIZE(irq_hash_table_lock);
+static hash_table_t irq_hash_table;
+
+/**
+ * Hash table operations for cases when we know that
+ * there will be collisions between different keys.
+ */
+static index_t irq_ht_hash(unative_t *key);
+static bool irq_ht_compare(unative_t *key, count_t keys, link_t *item);
+
+static hash_table_operations_t irq_ht_ops = {
+	.hash = irq_ht_hash,
+	.compare = irq_ht_compare,
+	.remove_callback = NULL		/* not used */
+};
+
+/**
+ * Hash table operations for cases when we know that
+ * there will be no collisions between different keys.
+ * However, there might be still collisions among
+ * elements with single key (sharing of one IRQ).
+ */
+static index_t irq_lin_hash(unative_t *key);
+static bool irq_lin_compare(unative_t *key, count_t keys, link_t *item);
+
+static hash_table_operations_t irq_lin_ops = {
+	.hash = irq_lin_hash,
+	.compare = irq_lin_compare,
+	.remove_callback = NULL		/* not used */
+};
+
+/** Initialize IRQ subsystem.
+ *
+ * @param inrs Numbers of unique IRQ numbers or INRs.
+ * @param chains Number of chains in the hash table.
+ */
+void irq_init(count_t inrs, count_t chains)
+{
+	/*
+	 * Be smart about the choice of the hash table operations.
+	 * In cases in which inrs equals the requested number of
+	 * chains (i.e. where there is no collision between
+	 * different keys), we can use optimized set of operations.
+	 */
+	if (inrs == chains)
+		hash_table_create(&irq_hash_table, chains, 1, &irq_lin_ops);
+	else
+		hash_table_create(&irq_hash_table, chains, 1, &irq_ht_ops);
+}
+
+/** Initialize one IRQ structure.
+ *
+ * @param irq Pointer to the IRQ structure to be initialized.
+ *
+ */
+void irq_initialize(irq_t *irq)
+{
+	link_initialize(&irq->link);
+	irq->inr = -1;
+	irq->devno = -1;
+	irq->notif = 0;
+	irq->trigger = 0;
+	irq->claim = NULL;
+	irq->handler = NULL;
+	irq->arg = NULL;
+}
+
+/** Register IRQ for device.
+ *
+ * The irq structure must be filled with information
+ * about the interrupt source and with the claim()
+ * function pointer and irq_handler() function pointer.
+ *
+ * @param irq IRQ structure belonging to a device.
+ */
+void irq_register(irq_t *irq)
+{
+	ipl_t ipl;
+	
+	ipl = interrupts_disable();
+	spinlock_lock(&irq_hash_table_lock);
+	hash_table_insert(&irq_hash_table, (void *) &irq->inr, &irq->link);
+	spinlock_unlock(&irq_hash_table_lock);
+	interrupts_restore(ipl);
+}
+
+/** Dispatch the IRQ.
+ *
+ * @param inr Interrupt number (aka inr or irq).
+ *
+ * @return IRQ structure of the respective device or NULL.
+ */
+irq_t *irq_dispatch(inr_t inr)
+{
+	ipl_t ipl;
+	link_t *lnk;
+	
+	ipl = interrupts_disable();
+	spinlock_lock(&irq_hash_table_lock);
+
+	lnk = hash_table_find(&irq_hash_table, (void *) &inr);
+	if (lnk) {
+		irq_t *irq;
+		
+		irq = hash_table_get_instance(lnk, irq_t, link);
+
+		spinlock_unlock(&irq_hash_table_lock);
+		interrupts_restore(ipl);
+		return irq;
+	}
+	
+	spinlock_unlock(&irq_hash_table_lock);
+	interrupts_restore(ipl);
+
+	return NULL;	
+}
+
+/** Compute hash index for the key.
+ *
+ * This function computes hash index into
+ * the IRQ hash table for which there
+ * can be collisions between different
+ * INRs.
+ *
+ * @param key Pointer to INR.
+ *
+ * @return Index into the hash table.
+ */
+index_t irq_ht_hash(unative_t *key)
+{
+	inr_t *inr = (inr_t *) key;
+	return *inr % irq_hash_table.entries;
+}
+
+/** Compare hash table element with a key.
+ *
+ * As usually, we do sort of a hack here.
+ * Even when the key matches the inr member,
+ * we ask the device to either accept
+ * or decline to service the interrupt.
+ *
+ * @param key Pointer to key (i.e. inr).
+ * @param keys This is 1.
+ * @param item The item to compare the key with.
+ *
+ * @return True on match or false otherwise.
+ */
+bool irq_ht_compare(unative_t *key, count_t keys, link_t *item)
+{
+	irq_t *irq = hash_table_get_instance(item, irq_t, link);
+	inr_t *inr = (inr_t *) key;
+	
+	return ((irq->inr == *inr) && (irq->claim() == IRQ_ACCEPT));
+}
+
+/** Compute hash index for the key.
+ *
+ * This function computes hash index into
+ * the IRQ hash table for which there
+ * are no collisions between different
+ * INRs.
+ *
+ * @param key INR.
+ *
+ * @return Index into the hash table.
+ */
+index_t irq_lin_hash(unative_t *key)
+{
+	inr_t *inr = (inr_t *) key;
+	return *inr;
+}
+
+/** Compare hash table element with a key.
+ *
+ * As usually, we do sort of a hack here.
+ * We don't compare the inr member with
+ * the key because we know that there are
+ * no collision between different keys.
+ * We only ask the device to either accept
+ * or decline to service the interrupt.
+ *
+ * @param key Pointer to key (i.e. inr).
+ * @param keys This is 1.
+ * @param item The item to compare the key with.
+ *
+ * @return True on match or false otherwise.
+ */
+bool irq_lin_compare(unative_t *key, count_t keys, link_t *item)
+{
+	irq_t *irq = list_get_instance(item, irq_t, link);
+	
+	return (irq->claim() == IRQ_ACCEPT);
+}
+
+/** @}
+ */
