tech-kern archive

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

Re: Equivalent of FreeBSD kernel semaphore?



Emmanuel Dreyfus <manu%netbsd.org@localhost> 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?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index