Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 18:43:28 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Yury Tarasievich <grog@grsu.by>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: documentation on kernel locks, mutexes?
Message-ID:  <Pine.NEB.3.96L.1021130183948.29371B-100000@fledge.watson.org>
In-Reply-To: <20021125100013.GA3937@deptty.in.grsu.by>

next in thread | previous in thread | raw e-mail | index | archive | help

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
robert@fledge.watson.org      Network Associates Laboratories



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1021130183948.29371B-100000>