MTX_DEF versus MTX_SPIN

Andriy Gapon avg at icyb.net.ua
Wed Nov 3 17:23:50 UTC 2010


on 03/11/2010 19:11 Kostik Belousov said the following:
> On Wed, Nov 03, 2010 at 10:04:13AM -0700, mdf at 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


More information about the freebsd-current mailing list