Damien Zammit, le dim. 25 sept. 2022 04:12:27 +, a ecrit:
> +static void
> +toggle_irq(struct irq *irq, bool on)
> +{
> + pthread_mutex_lock (&irq->irqlock);
> + irq->enabled = on;
> + pthread_cond_signal (&irq->irqcond);
Better only signal when `on` is true, since nobody is waiting for
`ir
This provides a new helper lib for registering
interrupt handlers in userspace, libirqhelp.
libirqhelp does not depend on libpciaccess.
( -1, bus, dev, fun, ...): will look up gsi from ACPI
(gsi, -1, -1, -1, ...): will use given gsi
---
Makefile | 1 +
libirqhelp/Makefile | 2