Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2000 12:34:53 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Nicolas Souchu <nsouch@alcove.fr>
Cc:        freebsd-current@FreeBSD.org, Archie Cobbs <archie@dellroad.org>
Subject:   RE: Mutex, SMBUS, ACPI (Re: how to mutex'ify a device driver)
Message-ID:  <XFMail.001124123453.jhb@FreeBSD.org>
In-Reply-To: <20001123114438.C19987@wiliam.alcove-int>

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

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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001124123453.jhb>