irq_done

Number0x42
Signature(dev_handle) -> 0 or -err
Groupirq
Since1.0

Signal that the device has been serviced. The kernel unmasks the IRQ line so it can fire again.

Pitfalls

Do not call irq_done until the device has actually been serviced and has deasserted the line, or you provoke an interrupt storm. Recalling it is fine, since the kernel ignores it if the IRQ is not masked.

Arguments

RegisterNameDescription
r0dev_handleHandle of the device

Returns

0 on success.

Errors

CodeCondition
ERR_BADHANDLE / ERR_BADTYPEFor a bad handle
ERR_BADARGHandle does not point to a valid IRQ
ERR_NOPERMCalling process does not own the IRQ

See also