Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Nov 2010 19:23:47 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        mdf@freebsd.org
Cc:        Kostik Belousov <kostikbel@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: MTX_DEF versus MTX_SPIN
Message-ID:  <4CD19AA3.3070106@icyb.net.ua>
In-Reply-To: <20101103171101.GS2392@deviant.kiev.zoral.com.ua>
References:  <AANLkTi=12-dSAZ21DbZgw36YbRGiUq4KZbyCx3SjucPG@mail.gmail.com> <4CD190EF.5080600@icyb.net.ua> <AANLkTimmiQ9VH=cr%2BPJ4Hz=h1Oua%2Bouj7CAv8L__JeNn@mail.gmail.com> <20101103171101.GS2392@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
on 03/11/2010 19:11 Kostik Belousov said the following:
> On Wed, Nov 03, 2010 at 10:04:13AM -0700, mdf@freebsd.org wrote:
>> Is there any documentation on best practices for writing a FreeBSD driver?
> Not that I am aware of. You can read locking(9) in HEAD to get the answer
> on your question about spin mutexes.

BTW, I think that BUS_SETUP_INTR(9) contains the most up to date information on
interrupt handling piece of a driver.  Unlike e.g. ithread(9).

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CD19AA3.3070106>