On Tue, Jan 10, 2012 at 06:41:38AM +0100, Emmanuel Dreyfus wrote: > Emmanuel Dreyfus <m...@netbsd.org> wrote: > > > I am not sure I correctly understand what you mean: is it that we do not > > have an equivalent of NetBSD's struct sema, and that it would need to be > > implemented using mutex and condvar? > > Looking at FreeBSD implementation, it seems almost trivial to import it > in our kernel: we just have to s/struct mtx/kmutex_t/ > > Is it desirable to import it in the kernel, or should it stay in the > DADHI driver?
Please do not add an additional, unnecessary synchronization primitive to our kernel.