From owner-freebsd-current@FreeBSD.ORG Wed Nov 3 22:02:20 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02D371065672; Wed, 3 Nov 2010 22:02:20 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (outo.internet-mail-service.net [216.240.47.238]) by mx1.freebsd.org (Postfix) with ESMTP id D5A778FC14; Wed, 3 Nov 2010 22:02:19 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id oA3M2JmS029315; Wed, 3 Nov 2010 15:02:19 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id E75F02D6014; Wed, 3 Nov 2010 15:02:17 -0700 (PDT) Message-ID: <4CD1DBE8.7090200@freebsd.org> Date: Wed, 03 Nov 2010 15:02:16 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Rick Macklem References: <1467533946.56814.1288821369058.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <1467533946.56814.1288821369058.JavaMail.root@erie.cs.uoguelph.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: mdf@freebsd.org, freebsd-current@freebsd.org, Andriy Gapon Subject: Re: MTX_DEF versus MTX_SPIN X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2010 22:02:20 -0000 On 11/3/10 2:56 PM, Rick Macklem wrote: >>> Is there any documentation on best practices for writing a FreeBSD >>> driver? >> Not really. :-/ >> > Just a dumb obvious suggestion. Imho, there is no better doc. than some > well written code, so maybe someone familiar with the drivers can suggest > one (or two) that they consider well written and use the current conventions > as "examples"? we try every now and then to put good examples in /usr/share/examples but I think what's there is hopelessly out of date. > rick, who never trusts documentation anyhow;-) > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >