From owner-freebsd-current Fri Nov 24 12:35:17 2000 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 5F35C37B4E5 for ; Fri, 24 Nov 2000 12:35:04 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id eAOKYdC56218; Fri, 24 Nov 2000 12:34:44 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20001123114438.C19987@wiliam.alcove-int> Date: Fri, 24 Nov 2000 12:34:53 -0800 (PST) From: John Baldwin To: Nicolas Souchu Subject: RE: Mutex, SMBUS, ACPI (Re: how to mutex'ify a device driver) Cc: freebsd-current@FreeBSD.org, Archie Cobbs Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 23-Nov-00 Nicolas Souchu wrote: > On Wed, Nov 22, 2000 at 04:58:32PM -0800, Archie Cobbs wrote: >> As a relatively simple exercise in -current kernel programming, >> I'm planning to mutex'ify the ichsmb(4) device driver (this is >> a relatively simple driver that currently uses splhigh()). I'd >> appreciate some feedback if what I'm doing is the right thing. > > What are kernel mutex? A new mechanism for spl replacement? Is it > introduced with the new SMP? I found nothing in the mail archives... Yes, they are used to replace spl()'s. You can read the mutex(9) manpage in -current for details about how the mutexes work. Hopefully before too long I will be adding some stuff to the developer's handbook to explain how to use the mutexes in the kernel. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message