Function 45 - reserve/free IRQ.
Parameters:
- eax = 45 - function number
- ebx = 0 - reserve, 1 = free
- ecx = IRQ number, 0..15
Returned value:
- eax = 0 - success
- eax = 1 - error (invalid IRQ number
or attempt to reserve not free IRQ
or to free IRQ, not reserved by this thread)
Remarks:
- IRQ reservation is required for functions 42 and 44.
- Only one thread can reserve the specific IRQ.
- IRQs, handled by the system itself, are reserved by the system
(thread 1) at booting.
- When a thread terminates, all reserved by it IRQs
are freed automatically.