Threaded IRQ
Linux's way of running the bulk of an interrupt handler in an ordinary, scheduled kernel thread rather than in interrupt context.
Thomas Gleixner landed request_threaded_irq() in Linux 2.6.30 in 2009, as one more piece carried over from the real-time patch set. A driver registers two functions: a short primary handler that quiets the hardware and returns IRQ_WAKE_THREAD, and a thread function that does the actual work. The thread has a priority, can sleep and can take a mutex — everything a normal interrupt handler is forbidden to do.
IRQF_ONESHOT keeps the line masked until the thread finishes, which level-triggered sources need if they are not to keep screaming. Under PREEMPT_RT, or with the threadirqs boot parameter, nearly every handler is forced into a thread. A critical user process can then outrank the network card's interrupt, which sounds like heresy right up until you need it.