From owner-freebsd-current Mon Feb 3 6:35:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C619137B401 for ; Mon, 3 Feb 2003 06:35:44 -0800 (PST) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 098CF43E4A for ; Mon, 3 Feb 2003 06:35:44 -0800 (PST) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost.locore.ca [127.0.0.1]) by k6.locore.ca (8.12.6/8.12.6) with ESMTP id h13EbANk004800; Mon, 3 Feb 2003 09:37:10 -0500 (EST) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.6/8.12.6/Submit) id h13EbAuC004799; Mon, 3 Feb 2003 09:37:10 -0500 (EST) Date: Mon, 3 Feb 2003 09:37:10 -0500 From: Jake Burkholder To: "Ilmar S. Habibulin" Cc: freebsd-current@FreeBSD.ORG Subject: Re: What is the difference between p_ucred and td_ucred? Message-ID: <20030203093710.B2837@locore.ca> References: <20030203090133.R78581-100000@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030203090133.R78581-100000@fledge.watson.org>; from ilmar@watson.org on Mon, Feb 03, 2003 at 09:08:41AM -0500 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 Apparently, On Mon, Feb 03, 2003 at 09:08:41AM -0500, Ilmar S. Habibulin said words to the effect of; > > Why not to use only credits for proc and make td_ucred macro like > td_proc->p_ucred? Or it has some meaning that i do not understand? td_ucred is a read only reference to p_ucred, so you can access it without needing any locks. Its potentially updated on each kernel entry. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message