Re: [PATCH v7 1/2 hurd] libirqhelp: Add library

2024-03-03 Thread Samuel Thibault
Damien Zammit, le sam. 02 mars 2024 10:31:50 +, a ecrit: > +static error_t > +get_acpi(void) > +{ > + error_t err = 0; > + mach_port_t tryacpi, device_master; > + > + acpidev = MACH_PORT_NULL; This looks odd. If we had a previous port in acpidev, we want to deallocate it, not forget it. >

[PATCH v7 1/2 hurd] libirqhelp: Add library

2024-03-02 Thread Damien Zammit
Add a helper library for attaching interrupt handlers in userspace. --- Makefile | 1 + libirqhelp/Makefile | 28 libirqhelp/irqhelp.c | 362 +++ libirqhelp/irqhelp.h | 49 ++ 4 files changed, 440 insertions(+) create mode 100644