On Mon, 25 Nov 2002, Yury Tarasievich wrote:

> I need to port some driver from linux to freebsd and, somehow, I can't
> find documentation on kernel locks and mutexes. There are no man pages,
> links from handbook are broken, and search on freebsd site gives nothing
> (besides the handbook itself). 

On 5.0-CURRENT, the following man pages may be of use to you:

SMPng primitives (prefered for new code):

mutex(9)        Kernel synchronization primitives
mtx_pool(9)     Mutex pool routines
condvar(9)      Kernel condition variable
sx(9)           Kernel shared/exclusive lock
sema(9)         Kernel counting semaphores
msleep(9)       Wait for events

Old-style BSD locking primitives:

lockmgr(9)      Lockmgr family of functions

I believe these man pages may also be accessible via the FreeBSD web page.
Also:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/locking.html

A chapter from the Developer's Handbook on kernel locking.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]      Network Associates Laboratories



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to