From owner-freebsd-hackers Mon Dec 18 5:39:40 2000 From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 18 05:39:37 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 5679A37B400 for ; Mon, 18 Dec 2000 05:39:36 -0800 (PST) Received: from nairobi-58.budapest.interware.hu ([195.70.50.250] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 1480Vo-000142-00; Mon, 18 Dec 2000 14:39:32 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A3E042F.7DEE0346@elischer.org> Date: Mon, 18 Dec 2000 04:33:51 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Wes Peters Cc: Devin Butterfield , hackers@freebsd.org Subject: Re: Writing Device Drivers References: <3A3D513B.52737F48@wireless.net> <3A3D9D80.61F1EAFC@softweyr.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Wes Peters wrote: > > Devin Butterfield wrote: > > > > This is IMHO one of the advantages linux has over FreeBSD. You can run > > by your local Barnes & Noble bookstore and pick up a copy of "Linux > > Device Drivers" and start writing code that you actually understand. > > And they'll run fine in Linux 2.0.43pre11 or something like that. All > of those books are out of date by the time they hit the shelf in your > bookstore, and given the slew rate of Linux kernel APIs, finding any > of them useful seems pretty doubtful. > > Well-written man pages for FreeBSD would certainly be a boon, but printed > books wouldn't really help that much. There are books available on > writing BSD device drivers, but the kernel APIs have moved on since then, > as you've noticed. Perhaps a good project for someone who wants to under- > stand FreeBSD device drivers would be to update the section 9 man pages? If people would keep the samples in /usr/share/examples/drivers up to date then it would be a lot easier... I have the pci/isa driver skeleton pretty up-to-date, but it doesn't have any DMA example code, nor does it have any sample code for pccard or cardbus . > > -- > "Where am I, and what am I doing in this handbasket?" > > Wes Peters Softweyr LLC > wes@softweyr.com http://softweyr.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message