Why can't we sleep in an ISR?



I have a very basic doubt here ... what makes it impossible to sleep
in an ISR? I mean, I know that the kernel preemption is disabled and
the kernel will panic, but I could not understand why?

TIA,

LL
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Why cant we sleep in an ISR?
    ... ISR has been masked to avoid preemption( ... if you try to sleep you take the locks you untill you are ... AFAIK, taking a lock disables kernel preemption, and hence it is not ...
    (Linux-Kernel)
  • regarding kernel preemption
    ... I had posted this on kernelnewbies, but did not get much response, and ... is the kernel preemption ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)