next up previous contents
Next: irq_request: allocate and handle Up: MOSS system calls Previous: gettimeofday: read the current

irq_free: free a previously-allocated hardware interrupt

SYNOPSIS

int irq_free(int irq);

DESCRIPTION

Releases a hardware interrupt that was previously intercepted with irq_request, once again allowing the normal DOS handler to service the interrupt. If the interrupt was disabled before irq_request was called, then irq_free will cause it to be disabled again.

PARAMETERS

irq
The hardware IRQ number to release, 0-15.

RETURN VALUE

Returns 0 if successful, or -1 on error, in which case errno indicates the error.



Bryan Ford