From owner-freebsd-questions Fri Mar 15 08:19:24 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA07797 for questions-outgoing; Fri, 15 Mar 1996 08:19:24 -0800 (PST) Received: from rk.ios.com (rk.ios.com [198.4.75.55]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA07768 for ; Fri, 15 Mar 1996 08:17:55 -0800 (PST) Received: (from rashid@localhost) by rk.ios.com (8.6.11/8.6.9) id LAA04058; Fri, 15 Mar 1996 11:16:55 -0500 From: Rashid Karimov Message-Id: <199603151616.LAA04058@rk.ios.com> Subject: Re: Vnodes and BSD coding standards? To: bsd@jaguar.cris.com (BSD Mailing List) Date: Fri, 15 Mar 1996 11:16:55 -0500 (EST) Cc: questions@freebsd.org In-Reply-To: <199603142217.OAA20886@jaguar.cris.com> from "BSD Mailing List" at Mar 14, 96 02:17:45 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Hello, > > As one who really wishes to learn the art of kernel development/modifications, > I've been diving into my FreeBSD /usr/src/sys sources, and have purchased > the books "The Design and Implementation of the 4.3BSD Unix Operating System", > and of course the Bach book. I would also recommend getting "The Magic Garden explained" book - it's mostly on SVR4, , very nice one, and there's other book on modern Unices ... can't reacll the name ... it has cactuses on the cover :) . It covers all the aspects ( rather shortly) comparing different flavors (BSD Reno,BSD4.4, SVR4,OSF/1 and Mach). > > So far, so good - it's deeply enjoyable being able to understand Unix at > such atomic levels. Currently am learning about "trap.c", and have started > with hard/softclock() calls, following along in the 4.3 UNIX book. > > The books I own do not mention the concept of 'vnodes', and it is clear > this is an important topic in the newer Kernels. Can anyone refer me to > a book which does, or can explain them to me? From what I've gathered, > it appears 'vnode' is an abstraction to an inode, mounted file system, > socket, pipe, etc, which is currently 'active'. Visit or call your local Barnes & Noble - the McKusick's book on 4.4 BSD shoud appear there soon. The title will be identical to the previous book by him and Leffler on 4.3 BSD. Aslo , when and if you dive into IP source code , get yourself volume 2 of Stevens' "tcp/ip illustrated" - it has full sources along with detailed explanations > > Secondly, the BSD kernel's C coding standard is a little different than > what I'm used to - are there any documents detailing the standards used > in the kernel, such as Indian hill, k&r, etc? > > Finally, are there other documents/books on the bsd kernel besides the > book I've purchased. There's a pretty steep up-front learning curve and > the more reference material I have, the better. Try also Dr.Jobbs magazine .. don;t remember the year , but there used to be a series of articles about porting BSD to Intel arch. It probably was 5-8 years ago ... should stop myself at NYC pulic library to take a look at that :) Rashid > > Thank you for your assistance. > R. Beerman >