Re: Questions of lock usage in NetBSD kernel code
Thor Lancelot Simon <[email protected]> Mon, 26 Jun 2017 11:08:07 -0400
| Newsgroups | gmane.os.netbsd.devel.kernel,gmane.os.netbsd.devel.general,gmane.os.netbsd.devel.smp |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jun 26, 2017 at 10:22:26AM +0800, Jia-Ju Bai wrote: > > Meanwhile, in your link > (https://mail-index.netbsd.org/current-users/2014/07/19/msg025295.html), > "KERNEL_LOCK" and "KERNEL_UNLOCK" can be regarded as "mutex_spin_enter" and > "mutex_spin_exit"? Not really. KERNEL_LOCK is a counted lock. -- Thor Lancelot Simon [email protected] "We cannot usually in social life pursue a single value or a single moral aim, untroubled by the need to compromise with others." - H.L.A. Hart