tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mutexes, locks and so on...

On Tue, Nov 16, 2010 at 07:52:13PM -0800, Matt Thomas wrote:
> Not true.  Spinlocks must enter through mutex_spin_enter and adaptive mutexes
> enter through mutex_enter.  The corresponding is true for exiting as well.
> The only reason mutex_vector_{enter,exit} is called to cause a panic.

No. Spinlocks can be obtained though both means. See mutex(9).
Just like they can be released by both mutex_spin_exit and mutex_exit.


Home | Main Index | Thread Index | Old Index