From owner-freebsd-doc Mon Jan 24 18: 5: 7 2000 Delivered-To: freebsd-doc@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id 4D4E8156D2; Mon, 24 Jan 2000 18:04:23 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com (j24.klt32.jaring.my [161.142.169.158]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id MAA13946; Tue, 25 Jan 2000 12:33:29 +1030 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id RAA03427; Mon, 24 Jan 2000 17:17:42 +0800 (MYT) (envelope-from grog) Date: Mon, 24 Jan 2000 17:17:42 +0800 From: Greg Lehey To: Mike Smith Cc: Bill Maniatty , Jeroen Ruigrok/Asmodai , FreeBSD-doc@FreeBSD.ORG, maniatty@cs.albany.edu, freebsd-hackers@FreeBSD.ORG Subject: Re: Learning the FreeBSD Kernel Message-ID: <20000124171742.M2643@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <20000124123920.F2643@mojave.worldwide.lemis.com> <200001240635.WAA10110@mass.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200001240635.WAA10110@mass.cdrom.com>; from msmith@FreeBSD.ORG on Sun, Jan 23, 2000 at 10:35:53PM -0800 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sunday, 23 January 2000 at 22:35:53 -0800, Mike Smith wrote: >> I can't agree with Mike Smith that reading the code is adequate. It >> certainly doesn't apply to newcomers, but it doesn't even apply to >> seasoned hackers like Mike: the BSD style doesn't provide for adequate >> comments, and so what you see from the code is mainly tactics, not >> strategy. > > You miss my point; you don't want to be writing a driver until you know > what you're doing. Documentation on an OS' driver interface won't teach > you that; it's something that's really only ever gleaned from experience. Hmm. I don't really see what your reply has to do with what you quote. I also strongly suspect that *nobody* really knows what he's doing when he writes his first driver, and that it's an interative process to learn how to get there. Most of us were ``thrown in the deep end'', and somehow we learnt to swim. But in detail, what we all did was to look at all documentation we could find, including of course the source code. I didn't say that reading the source code is bad; it's definitely part of it, just not enough. To be fair, this is an experience I've made with multiple operating systems now. FreeBSD is no worse than the others; writing drivers is inadequately described in every system I know. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message