From owner-freebsd-chat Tue Jan 23 2:37:28 2001 Delivered-To: freebsd-chat@freebsd.org Received: from ns5.pacific.net.au (ns5.pacific.net.au [203.143.252.30]) by hub.freebsd.org (Postfix) with ESMTP id 7702C37B402 for ; Tue, 23 Jan 2001 02:37:09 -0800 (PST) Received: from dungeon.home (ppp150.dyn249.pacific.net.au [203.143.249.150]) by ns5.pacific.net.au (8.9.0/8.9.1) with ESMTP id VAA15651; Tue, 23 Jan 2001 21:37:07 +1100 (EST) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.11.1/8.9.3) with ESMTP id f0NAbjI22950; Tue, 23 Jan 2001 20:37:45 +1000 (EST) (envelope-from mckay) Message-Id: <200101231037.f0NAbjI22950@dungeon.home> To: j mckitrick Cc: chat@freebsd.org, mckay@thehub.com.au Subject: Re: good example kernel code References: <20010122125839.A3300@dogma.freebsd-uk.eu.org> In-Reply-To: <20010122125839.A3300@dogma.freebsd-uk.eu.org> from j mckitrick at "Mon, 22 Jan 2001 12:58:39 +0000" Date: Tue, 23 Jan 2001 20:37:45 +1000 From: Stephen McKay Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Monday, 22nd January 2001, j mckitrick wrote: >I have been studying 'man style' and looking through kernel code. Does >anyone know of any code in the kernel that is about the best example of >well-written, correct, secure, properly styled code? For a long time I've considered the ed network driver to be the highest quality code in FreeBSD. It has been beaten on for 7.5 years now and still looks good. Have a read of sys/dev/ed/if_ed.c and see if you don't agree. Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message