IT lexicon › Hardware › Shared interrupt

Shared interrupt

Hardware På svenska → Updated: 2026-11-04

Several interrupt sources on one line or vector, so the handler's first job is working out who actually called.

Interrupt lines are scarce. ISA interrupts were edge-triggered and could not realistically be shared, which is why 1990s PC owners kept lists of free IRQs and fiddled with jumpers. PCI changed the rules: INTx lines are level-triggered, so the line stays asserted while any device still wants attention, and several drivers can hang off the same number. In Linux they register with IRQF_SHARED, check their own status register, and politely report that it wasn't them if the interrupt isn't theirs.

On microcontrollers, sharing happens at a smaller scale every day. A UART has one vector for byte received, transmit empty and overrun, and STM32 puts five EXTI lines on a single vector. The handler reads the flags, deals with each, and clears each. Forget to clear one source and the interrupt fires again immediately, after which the CPU does nothing else, ever.

← Back to the lexicon