From owner-freebsd-current Thu Nov 23 2:45:35 2000 Delivered-To: freebsd-current@freebsd.org Received: from smtp.alcove.fr (smtp.alcove.fr [212.155.209.139]) by hub.freebsd.org (Postfix) with ESMTP id 58A8C37B4CF for ; Thu, 23 Nov 2000 02:45:32 -0800 (PST) Received: from wiliam.alcove-int ([10.16.110.19]) by smtp.alcove.fr with esmtp (Exim 3.12 #1 (Debian)) id 13ytrx-0006f9-00; Thu, 23 Nov 2000 11:44:45 +0100 Received: from nsouch by wiliam.alcove-int with local (Exim 3.12 #1 (Debian)) id 13ytrr-0005FV-00; Thu, 23 Nov 2000 11:44:39 +0100 Date: Thu, 23 Nov 2000 11:44:38 +0100 From: Nicolas Souchu To: Archie Cobbs Cc: freebsd-current@freebsd.org Subject: Mutex, SMBUS, ACPI (Re: how to mutex'ify a device driver) Message-ID: <20001123114438.C19987@wiliam.alcove-int> References: <200011230058.eAN0wWI62818@curve.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.4i In-Reply-To: <200011230058.eAN0wWI62818@curve.dellroad.org>; from archie@dellroad.org on Wed, Nov 22, 2000 at 04:58:32PM -0800 Organization: =?iso-8859-1?Q?Alc=F4ve=2C_http:=2F=2Fwww=2Ealcove=2Efr?= Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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... > > The plan is to give each instance of the device a mutex. This > mutex will be grabbed by both the top level code (when programming > the chip to do something or reading the results) and the interrupt > code (when servicing an interrupt). Have you comments about smbus/iicbus? What would you add to the todo list of the framework? Did you participate to ACPI discussions? -- Nicolas Souchu Alcôve - Open Source Software Engineer - http://www.alcove.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message