How to use spin_lock & unlock?

How to use spin_lock & unlock?

Post by ±è?ü? » Tue, 16 Nov 1999 04:00:00



In kernel source of linux,  I can find many spin_lock function,

         spin_lock_irq()
         spin_unlock_irq()
         spin_lock_irqsave()
         spin_unlock_irqrestore()

What these are? What these do?

 
 
 

How to use spin_lock & unlock?

Post by Peter Pointne » Tue, 16 Nov 1999 04:00:00



> In kernel source of linux,  I can find many spin_lock function,
>          spin_lock_irq()
>          spin_unlock_irq()
>          spin_lock_irqsave()
>          spin_unlock_irqrestore()
> What these are? What these do?

UTSL is good, but there _is_ some documentation, which is worth reading!

more /usr/src/linux/Documentation/spinlocks.txt

Peter