[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v2 3/8] include/uk: Introduce ukplat_irq_register()
Reviewed-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> Simon Kuenzer <simon.kuenzer@xxxxxxxxx> writes: > 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 > -- Yuri Volchkov Software Specialist NEC Europe Ltd Kurfürsten-Anlage 36 D-69115 Heidelberg _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |