[irq] Creating functions and data structures to handle IRQs.