[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v2 3/8] include/uk: Introduce ukplat_irq_register()



Introduce a ukplat API registration function for interrupt
handlers.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 include/uk/plat/irq.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/uk/plat/irq.h b/include/uk/plat/irq.h
index b4e6375..6c1eb94 100644
--- a/include/uk/plat/irq.h
+++ b/include/uk/plat/irq.h
@@ -47,6 +47,17 @@ struct uk_alloc;
  */
 int ukplat_irq_init(struct uk_alloc *a);
 
+typedef int (*irq_handler_func_t)(void *);
+
+/**
+ * Registers an interrupt handler
+ * @param irq Interrupt number
+ * @param func Interrupt funciton
+ * @param arg Extra argument to be handover to interrupt function
+ * @return 0 on success, a negative errno value on errors
+ */
+int ukplat_irq_register(unsigned long irq, irq_handler_func_t func, void *arg);
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.