From owner-freebsd-arch Wed Nov 14 21:11: 4 2001 Delivered-To: freebsd-arch@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 8F88E37B41B; Wed, 14 Nov 2001 21:11:02 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 30ECC81D01; Wed, 14 Nov 2001 23:10:57 -0600 (CST) Date: Wed, 14 Nov 2001 23:10:57 -0600 From: Alfred Perlstein To: Greg Lehey Cc: Bruce Evans , Matthew Dillon , Peter Wemm , Robert Watson , freebsd-arch@FreeBSD.ORG Subject: Re: cur{thread/proc}, or not. Message-ID: <20011114231057.K13393@elvis.mu.org> References: <20011112165530.B34657-100000@delplex.bde.org> <200111121009.fACA9SI75024@apollo.backplane.com> <20011111191735.00D053807@overcee.netplex.com.au> <20011112165530.B34657-100000@delplex.bde.org> <200111121009.fACA9SI75024@apollo.backplane.com> <20011115132945.C33267@monorchid.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011115132945.C33267@monorchid.lemis.com>; from grog@FreeBSD.org on Thu, Nov 15, 2001 at 01:29:45PM +1030 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If you want to see why curproc sucks then please investigate what happens when you NDINIT a nameidata with another thread pointer other than your own, then perform a vn_open. kablooey! My recent addition of vn_open_cred and modification of nfs_lock.c was to get around this badness of the API. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message