linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Preemption VS Interrupts
@ 2023-12-10  9:54 Ajay Garg
  0 siblings, 0 replies; only message in thread
From: Ajay Garg @ 2023-12-10  9:54 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi everyone.

The API "spin_lock" disables preemption on the local processor.
The API "spin_lock_irqsave" disables preemption on the local
processor, and also disables interrupts on the local processor.

Thus, is disabling-interrupt independent of preemption?
In other words, can an interrupt still "preempt" a critical section
code even if preemption is disabled in the general sense (on a
non-preemptive kernel for example)?


Will be grateful for help in this regard, as it will clear up the
fuzziness going in my head.
Many thanks in advance !


Thanks and Regards,
Ajay

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-10 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10  9:54 Preemption VS Interrupts Ajay Garg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).