tech-kern archive

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

Re: Equivalent of FreeBSD kernel semaphore?



In article <1kdmwvf.163omky1siecjlM%manu%netbsd.org@localhost>,
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>Hello
>
>First problem for porting DADHI drivers: the FreeBSD version uses kernel
>semaphores:
>http://www.unix.com/man-page/FreeBSD/9/sema/
>
>What is the NetBSD equivalent? I know our locks, conditions variables,
>but what about semaphores?

Why don't you implement them the same way like FreeBSD did, using a mutex
and a condition variable? I don't know how they are used in the DAHDI driver
but this might not be even necessary.

christos



Home | Main Index | Thread Index | Old Index