From owner-freebsd-hackers Mon Nov 25 2:27:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A82A337B401 for ; Mon, 25 Nov 2002 02:27:17 -0800 (PST) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66EC743E4A for ; Mon, 25 Nov 2002 02:27:17 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0020.cvx21-bradley.dialup.earthlink.net ([209.179.192.20] helo=mindspring.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18GGSI-0006OZ-00; Mon, 25 Nov 2002 02:27:06 -0800 Message-ID: <3DE1FAAB.81356E0A@mindspring.com> Date: Mon, 25 Nov 2002 02:25:47 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Yury Tarasievich Cc: freebsd-hackers@freebsd.org Subject: Re: documentation on kernel locks, mutexes? References: <20021125100013.GA3937@deptty.in.grsu.by> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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). > > Where can I find some docs? Kernel documentation is poor, because interfaces are not as fixed in stone as you might expect them to be to encourage third party developement and porting efforts like yours. Your best bet is to pick a driver for an existing device that is similar in operation to the device whose driver you are in the process of porting, and use it as a guide to tell you where and how to lock. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message