In article <1kdmwvf.163omky1siecjlm%m...@netbsd.org>, Emmanuel Dreyfus <m...@netbsd.org> 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