I know that linux does nested interrupts where one interrupt can \"preempt\" another interrupt, but what about with other tasks.
I am just trying to understand how l
Simple answer: An interrupt can only be interrupted by interrupts of higher priority.
Therefore an interrupt can be interrupted by the kernel or a user task if the interrupt's priority is lower than the kernel scheduler interrupt priority or user task interrupt priority.
Note that by "user task" I mean user-defined interrupt.