From owner-freebsd-current Fri Feb 1 17:41:15 2002 Delivered-To: freebsd-current@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 90AC937B404; Fri, 1 Feb 2002 17:41:05 -0800 (PST) Received: from pool0542.cvx40-bradley.dialup.earthlink.net ([216.244.44.32] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16WpAu-0005EL-00; Fri, 01 Feb 2002 17:41:04 -0800 Message-ID: <3C5B43AB.4E97EBA9@mindspring.com> Date: Fri, 01 Feb 2002 17:40:59 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: Bruce Evans , current@freebsd.org Subject: Re: lock reversal in fdalloc() References: <20020202072516.J290-100000@gamplex.bde.org> <3C5B3A94.6B12B9D0@mindspring.com> <20020201170509.E10817@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > There's a bunch of bogosity in the ordering of allocation of > slots in the filedesc versus filling out the struct file and > insertion into the list that I need to work out. I should be > able to take a swipe at it in a couple of weeks hopefully. It's very tempting to put an API to it, and make everyone use it the same way, to guarantee consistency. It's also very tempting to hack the crap out of it to seperate file access itself from the system call layer itself, so that file slot allocation is something that is system call layer specific, which would greatly enhance the ability to do kernel level file I/O and other things. AIX has a nice model, here. Doing that would put the API barrier at the system call layer along, which would clean up almost everything that needed to use it. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message