Spinlocks and interrupts

Kai Meyer kai at gnukai.com
Wed Nov 9 16:07:31 EST 2011


When I readup on spinlocks, it seems like I need to choose between 
disabling interrupts and not. If a spinlock_t is never used during an 
interrupt, am I safe to leave interrupts enabled while I hold the lock? 
(Same question for read/write locks if it is different.)

-Kai Meyer



More information about the Kernelnewbies mailing list