Re: A question of lock usage in OpenBSD kernel code

2017-06-24 Thread Jia-Ju Bai
Thanks, Stefan :) On 2017/6/24 10:19, Stefan Sperling wrote: Yes, rwlock(9) style locks can sleep.

Re: A question of lock usage in OpenBSD kernel code

2017-06-23 Thread Stefan Sperling
On Fri, Jun 23, 2017 at 10:08:26PM +0800, Jia-Ju Bai wrote: > Hi, > > I am a freshman in developing OpenBSD drivers, and I have a question in > lock usage in OpenBSD kernel code. > > I only find two kinds of locks which are often used in OpenBSD drivers, > namely "mutex lock" and "rw lock". I