From owner-freebsd-chat Fri Jun 22 3:24: 1 2001 Delivered-To: freebsd-chat@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 50E6E37B401 for ; Fri, 22 Jun 2001 03:23:59 -0700 (PDT) (envelope-from mwlucas@blackhelicopters.org) Received: (from mwlucas@localhost) by blackhelicopters.org (8.9.3/8.9.3) id GAA45138; Fri, 22 Jun 2001 06:22:38 -0400 (EDT) (envelope-from mwlucas) Date: Fri, 22 Jun 2001 06:22:38 -0400 From: Michael Lucas To: Dag-Erling Smorgrav Cc: j mckitrick , freebsd-chat@FreeBSD.ORG Subject: Re: most complex code in BSD? Message-ID: <20010622062238.A45123@blackhelicopters.org> References: <20010621233210.A37804@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from des@ofug.org on Fri, Jun 22, 2001 at 02:27:41AM +0200 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org When I took the two-day FreeBSD Internals course McKusick taught, he brought up the context-switching code. The original UNIX authors were not much on comments. When they put a comment, it was to explain something really, really, *really* difficult. Apparently there was a seven-word comment in the context switching code that gave him a bit of a start: "You are not expected to understand this." Don't know if it's still there, but it's still probably pretty scary. On Fri, Jun 22, 2001 at 02:27:41AM +0200, Dag-Erling Smorgrav wrote: > j mckitrick writes: > > In everyone's opinion, what is the most complex code in the BSD codebase? > > Not including asm (unless there is an especialy exemplary example of > > obfuscated code, but it seems compilers are better at that ;-) what code is > > most likely to turn a newbie's brain to tapioca? > > Most likely NFS, though it's not as bad as it used to be. The VFS > system is probably a close second (namei() anyone?). > > DES > -- > Dag-Erling Smorgrav - des@ofug.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-chat" in the body of the message -- Michael Lucas mwlucas@blackhelicopters.org http://www.blackhelicopters.org/~mwlucas/ Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message